Changeset 24523 in osm for applications/editors/josm/plugins/smed
- Timestamp:
- 2010-12-02T17:43:28+01:00 (14 years ago)
- Location:
- applications/editors/josm/plugins/smed/plugs/oseam/src
- Files:
-
- 1 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/smed/plugs/oseam/src/oseam/dialogs/OSeaMAction.java
r24513 r24523 42 42 43 43 private JPanel oseamPanel = null; 44 private JButton chanButton = null; 44 45 45 46 public OSeaMAction() { … … 63 64 oseamPanel.setLayout(null); 64 65 oseamPanel.setSize(new Dimension(400, 360)); 66 oseamPanel.add(getChanButton(), null); 65 67 } 66 68 return oseamPanel; 67 69 } 68 70 71 private JButton getChanButton() { 72 if (chanButton == null) { 73 chanButton = new JButton(); 74 chanButton.setBounds(new Rectangle(340, 56, 50, 50)); 75 chanButton.setText(""); 76 chanButton.setIcon(new ImageIcon(getClass().getResource("/images/Chan.png"))); 77 chanButton.setToolTipText("Channel Marks"); 78 chanButton.addActionListener(new java.awt.event.ActionListener() { 79 public void actionPerformed(java.awt.event.ActionEvent e) { 80 /* panelLimits.setVisible(false); 81 panelServices.setVisible(false); 82 panelEnv.setVisible(false); 83 panelRelations.setVisible(false); 84 panelGeneral.setVisible(true); 85 */ } 86 }); 87 } 88 return chanButton; 89 } 90 69 91 }
Note:
See TracChangeset
for help on using the changeset viewer.