()
| 169 | } |
| 170 | |
| 171 | private void initComponents() |
| 172 | { |
| 173 | FontManipulation.small(expandAllButton); |
| 174 | expandAllButton.setMargin(new Insets(0, -2,0,-2)); |
| 175 | FontManipulation.small(collapseAllButton); |
| 176 | collapseAllButton.setMargin(new Insets(0, -2,0,-2)); |
| 177 | |
| 178 | FontManipulation.small(newSetButton); |
| 179 | newSetButton.setMargin(new Insets(0, 0, 0, 0)); |
| 180 | FontManipulation.small(removeSetButton); |
| 181 | removeSetButton.setMargin(new Insets(0, 0, 0, 0)); |
| 182 | |
| 183 | setOrientation(HORIZONTAL_SPLIT); |
| 184 | FlippingSplitPane splitPane = new FlippingSplitPane(VERTICAL_SPLIT); |
| 185 | |
| 186 | JPanel panel = new JPanel(new BorderLayout()); |
| 187 | |
| 188 | Box bar = Box.createHorizontalBox(); |
| 189 | bar.add(Box.createHorizontalStrut(5)); |
| 190 | bar.add(new JLabel(LanguageBundle.getString("in_equipView"))); //$NON-NLS-1$ |
| 191 | bar.add(Box.createHorizontalStrut(5)); |
| 192 | bar.add(equipViewBox); |
| 193 | bar.add(Box.createHorizontalStrut(5)); |
| 194 | tableFilter = new SearchFilterPanel(); |
| 195 | bar.add(tableFilter.getFilterComponent()); |
| 196 | bar.setBorder(BorderFactory.createEmptyBorder(2, 0, 2, 0)); |
| 197 | panel.add(bar, BorderLayout.NORTH); |
| 198 | |
| 199 | equipmentTable.setAutoCreateColumnsFromModel(false); |
| 200 | equipmentTable.setColumnModel(createEquipmentColumnModel()); |
| 201 | equipmentTable.setAutoCreateRowSorter(true); |
| 202 | panel.add(new JScrollPane(equipmentTable), BorderLayout.CENTER); |
| 203 | |
| 204 | Box buttonsBox = Box.createHorizontalBox(); |
| 205 | buttonsBox.add(Box.createHorizontalGlue()); |
| 206 | equipButton.setHorizontalTextPosition(SwingConstants.LEADING); |
| 207 | buttonsBox.add(equipButton); |
| 208 | buttonsBox.setBorder(BorderFactory.createEmptyBorder(5, 0, 5, 0)); |
| 209 | panel.add(buttonsBox, BorderLayout.SOUTH); |
| 210 | |
| 211 | splitPane.setTopComponent(panel); |
| 212 | splitPane.setBottomComponent(infoPane); |
| 213 | |
| 214 | setLeftComponent(splitPane); |
| 215 | |
| 216 | panel = new JPanel(new BorderLayout()); |
| 217 | |
| 218 | Box equipPane = Box.createVerticalBox(); |
| 219 | Box box = Box.createHorizontalBox(); |
| 220 | box.add(Box.createHorizontalGlue()); |
| 221 | box.add(new JLabel(LanguageBundle.getString("in_equipSetLabel"))); //$NON-NLS-1$ |
| 222 | box.add(Box.createHorizontalStrut(3)); |
| 223 | box.add(equipSetBox); |
| 224 | box.add(Box.createHorizontalStrut(3)); |
| 225 | box.add(newSetButton); |
| 226 | box.add(Box.createHorizontalStrut(3)); |
| 227 | box.add(removeSetButton); |
| 228 | box.add(Box.createHorizontalGlue()); |
no test coverage detected