Changeset 24532 in osm for applications/editors/josm/plugins/smed
- Timestamp:
- 2010-12-02T19:28:43+01:00 (14 years ago)
- Location:
- applications/editors/josm/plugins/smed/plugs/oseam/src
- Files:
-
- 2 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/smed/plugs/oseam/src/oseam/dialogs/OSeaMAction.java
r24528 r24532 44 44 private JButton chanButton = null; 45 45 private JButton hazButton = null; 46 private JButton specButton = null; 47 private JButton lightButton = null; 46 48 47 49 public OSeaMAction() { … … 65 67 oseamPanel.setLayout(null); 66 68 oseamPanel.setSize(new Dimension(400, 360)); 69 oseamPanel.add(getHazButton(), null); 67 70 oseamPanel.add(getChanButton(), null); 68 oseamPanel.add(getHazButton(), null); 71 oseamPanel.add(getSpecButton(), null); 72 oseamPanel.add(getLightButton(), null); 69 73 } 70 74 return oseamPanel; … … 111 115 } 112 116 117 private JButton getSpecButton() { 118 if (specButton == null) { 119 specButton = new JButton(); 120 specButton.setBounds(new Rectangle(340, 166, 50, 50)); 121 specButton.setText(""); 122 specButton.setIcon(new ImageIcon(getClass().getResource("/images/Spec.png"))); 123 specButton.setToolTipText("Special Marks"); 124 specButton.addActionListener(new java.awt.event.ActionListener() { 125 public void actionPerformed(java.awt.event.ActionEvent e) { 126 /* panelLimits.setVisible(false); 127 panelServices.setVisible(false); 128 panelEnv.setVisible(false); 129 panelRelations.setVisible(false); 130 panelGeneral.setVisible(true); 131 */ } 132 }); 133 } 134 return specButton; 135 } 136 137 private JButton getLightButton() { 138 if (lightButton == null) { 139 lightButton = new JButton(); 140 lightButton.setBounds(new Rectangle(340, 221, 50, 50)); 141 lightButton.setText(""); 142 lightButton.setIcon(new ImageIcon(getClass().getResource("/images/Lights.png"))); 143 lightButton.setToolTipText("Light Marks"); 144 lightButton.addActionListener(new java.awt.event.ActionListener() { 145 public void actionPerformed(java.awt.event.ActionEvent e) { 146 /* panelLimits.setVisible(false); 147 panelServices.setVisible(false); 148 panelEnv.setVisible(false); 149 panelRelations.setVisible(false); 150 panelGeneral.setVisible(true); 151 */ } 152 }); 153 } 154 return lightButton; 155 } 156 113 157 }
Note:
See TracChangeset
for help on using the changeset viewer.