| 114 | |
| 115 | /** */ |
| 116 | void jbInit() throws Exception { |
| 117 | JPanel centerPanel = new JPanel(); |
| 118 | centerBox = Box.createVerticalBox(); |
| 119 | centerPanel.setLayout(borderLayout1); |
| 120 | //centerPanel.setBorder(new LineBorder(Color.darkGray, 2)); |
| 121 | // centerPanel.setBackground(Color.white); |
| 122 | // centerBox.setBackground(Color.white); |
| 123 | picture = new JLabel(icon); |
| 124 | picture.setOpaque(false); |
| 125 | centerPanel.add(centerBox, BorderLayout.CENTER); |
| 126 | centerPanel.add(picture, BorderLayout.WEST); |
| 127 | centerPanel.add(Box.createVerticalStrut(5), BorderLayout.NORTH); |
| 128 | centerPanel.add(Box.createVerticalStrut(5), BorderLayout.SOUTH); |
| 129 | centerPanel.add(Box.createHorizontalStrut(8), BorderLayout.EAST); |
| 130 | getContentPane().add(centerPanel, BorderLayout.CENTER); |
| 131 | centerPanel.setOpaque(false); |
| 132 | } |
| 133 | |
| 134 | /** |
| 135 | * Hides the window. |