Changeset 24722 in osm for applications/editors/josm/plugins
- Timestamp:
- 2010-12-12T20:09:35+01:00 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/smed/plugs/oseam/src/oseam/dialogs/OSeaMAction.java
r24720 r24722 167 167 public void actionPerformed(java.awt.event.ActionEvent e) { 168 168 if (chanButton.isSelected()) { 169 Enabled(false);169 chanButton.setBorderPainted(true); 170 170 panelChan.setVisible(true); 171 171 } else { 172 Enabled(true);172 chanButton.setBorderPainted(false); 173 173 panelChan.setVisible(false); 174 174 } 175 175 if (hazButton.isSelected()) { 176 Enabled(false);176 hazButton.setBorderPainted(true); 177 177 panelHaz.setVisible(true); 178 178 } else { 179 Enabled(true);179 hazButton.setBorderPainted(false); 180 180 panelHaz.setVisible(false); 181 181 } 182 182 if (specButton.isSelected()) { 183 Enabled(false);183 specButton.setBorderPainted(true); 184 184 panelSpec.setVisible(true); 185 185 } else { 186 Enabled(true);186 specButton.setBorderPainted(false); 187 187 panelSpec.setVisible(false); 188 188 } 189 189 if (lightsButton.isSelected()) { 190 Enabled(false);190 lightsButton.setBorderPainted(true); 191 191 panelLights.setVisible(true); 192 192 } else { 193 Enabled(true);193 lightsButton.setBorderPainted(false); 194 194 panelLights.setVisible(false); 195 195 } … … 213 213 public void actionPerformed(java.awt.event.ActionEvent e) { 214 214 if (topButton.isSelected()) { 215 topButton.set Enabled(false);215 topButton.setBorderPainted(true); 216 216 panelTop.setVisible(true); 217 217 } else { 218 topButton.set Enabled(true);218 topButton.setBorderPainted(false); 219 219 panelTop.setVisible(false); 220 220 } 221 221 if (fogButton.isSelected()) { 222 fogButton.set Enabled(false);222 fogButton.setBorderPainted(true); 223 223 panelFog.setVisible(true); 224 224 } else { 225 fogButton.set Enabled(true);225 fogButton.setBorderPainted(false); 226 226 panelFog.setVisible(false); 227 227 } 228 228 if (radarButton.isSelected()) { 229 radarButton.set Enabled(false);229 radarButton.setBorderPainted(true); 230 230 panelRadar.setVisible(true); 231 231 } else { 232 radarButton.set Enabled(true);232 radarButton.setBorderPainted(false); 233 233 panelRadar.setVisible(false); 234 234 } 235 235 if (litButton.isSelected()) { 236 litButton.set Enabled(false);236 litButton.setBorderPainted(true); 237 237 panelLit.setVisible(true); 238 238 } else { 239 litButton.set Enabled(true);239 litButton.setBorderPainted(false); 240 240 panelLit.setVisible(false); 241 241 } … … 266 266 chanButton = new JRadioButton(new ImageIcon(getClass().getResource( 267 267 "/images/ChanButton.png"))); 268 chanButton.setBounds(new Rectangle(0, 0, 65, 40)); 268 chanButton.setBounds(new Rectangle(0, 0, 62, 40)); 269 chanButton.setBorder(BorderFactory.createLineBorder(Color.magenta, 2)); 269 270 chanButton.setToolTipText(Messages.getString("ChanTip")); 270 271 } … … 276 277 hazButton = new JRadioButton(new ImageIcon(getClass().getResource( 277 278 "/images/HazButton.png"))); 278 hazButton.setBounds(new Rectangle(0, 40, 65, 40)); 279 hazButton.setBounds(new Rectangle(0, 40, 62, 40)); 280 hazButton.setBorder(BorderFactory.createLineBorder(Color.magenta, 2)); 279 281 hazButton.setToolTipText(Messages.getString("HazTip")); 280 282 } … … 286 288 specButton = new JRadioButton(new ImageIcon(getClass().getResource( 287 289 "/images/SpecButton.png"))); 288 specButton.setBounds(new Rectangle(0, 80, 65, 40)); 290 specButton.setBounds(new Rectangle(0, 80, 62, 40)); 291 specButton.setBorder(BorderFactory.createLineBorder(Color.magenta, 2)); 289 292 specButton.setToolTipText(Messages.getString("SpecTip")); 290 293 } … … 296 299 lightsButton = new JRadioButton(new ImageIcon(getClass().getResource( 297 300 "/images/LightsButton.png"))); 298 lightsButton.setBounds(new Rectangle(0, 120, 65, 40)); 301 lightsButton.setBounds(new Rectangle(0, 120, 62, 40)); 302 lightsButton.setBorder(BorderFactory.createLineBorder(Color.magenta, 2)); 299 303 lightsButton.setToolTipText(Messages.getString("LightsTip")); 300 304 } … … 306 310 topButton = new JRadioButton(new ImageIcon(getClass().getResource( 307 311 "/images/TopButton.png"))); 308 topButton.setBounds(new Rectangle(0, 165, 36, 32)); 312 topButton.setBounds(new Rectangle(0, 165, 34, 32)); 313 topButton.setBorder(BorderFactory.createLineBorder(Color.magenta, 2)); 309 314 topButton.setToolTipText(Messages.getString("TopmarksTip")); 310 315 } … … 316 321 fogButton = new JRadioButton(new ImageIcon(getClass().getResource( 317 322 "/images/FogButton.png"))); 318 fogButton.setBounds(new Rectangle(0, 200, 36, 32)); 323 fogButton.setBounds(new Rectangle(0, 200, 34, 32)); 324 fogButton.setBorder(BorderFactory.createLineBorder(Color.magenta, 2)); 319 325 fogButton.setToolTipText(Messages.getString("FogSignalsTip")); 320 326 } … … 326 332 radarButton = new JRadioButton(new ImageIcon(getClass() 327 333 .getResource("/images/RadarButton.png"))); 328 radarButton.setBounds(new Rectangle(0, 235, 36, 32)); 334 radarButton.setBounds(new Rectangle(0, 235, 34, 32)); 335 radarButton.setBorder(BorderFactory.createLineBorder(Color.magenta, 2)); 329 336 radarButton.setToolTipText(Messages.getString("RadarTip")); 330 337 } … … 336 343 litButton = new JRadioButton(new ImageIcon(getClass().getResource( 337 344 "/images/LitButton.png"))); 338 litButton.setBounds(new Rectangle(0, 270, 36, 32)); 345 litButton.setBounds(new Rectangle(0, 270, 34, 32)); 346 litButton.setBorder(BorderFactory.createLineBorder(Color.magenta, 2)); 339 347 litButton.setToolTipText(Messages.getString("LitTip")); 340 348 }
Note:
See TracChangeset
for help on using the changeset viewer.