Changeset 24528 in osm for applications
- Timestamp:
- 2010-12-02T18:34:01+01:00 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/smed/plugs/oseam/src/oseam/dialogs/OSeaMAction.java
r24523 r24528 43 43 private JPanel oseamPanel = null; 44 44 private JButton chanButton = null; 45 private JButton hazButton = null; 45 46 46 47 public OSeaMAction() { … … 65 66 oseamPanel.setSize(new Dimension(400, 360)); 66 67 oseamPanel.add(getChanButton(), null); 68 oseamPanel.add(getHazButton(), null); 67 69 } 68 70 return oseamPanel; … … 89 91 } 90 92 93 private JButton getHazButton() { 94 if (hazButton == null) { 95 hazButton = new JButton(); 96 hazButton.setBounds(new Rectangle(340, 111, 50, 50)); 97 hazButton.setText(""); 98 hazButton.setIcon(new ImageIcon(getClass().getResource("/images/Haz.png"))); 99 hazButton.setToolTipText("Danger Marks"); 100 hazButton.addActionListener(new java.awt.event.ActionListener() { 101 public void actionPerformed(java.awt.event.ActionEvent e) { 102 /* panelLimits.setVisible(false); 103 panelServices.setVisible(false); 104 panelEnv.setVisible(false); 105 panelRelations.setVisible(false); 106 panelGeneral.setVisible(true); 107 */ } 108 }); 109 } 110 return hazButton; 111 } 112 91 113 }
Note:
See TracChangeset
for help on using the changeset viewer.