Changeset 24597 in osm for applications/editors/josm/plugins/smed/plugs
- Timestamp:
- 2010-12-05T16:31:30+01:00 (14 years ago)
- Location:
- applications/editors/josm/plugins/smed/plugs/oseam/src
- Files:
-
- 39 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/smed/plugs/oseam/src/oseam/panels/PanelChan.java
r24595 r24597 20 20 21 21 import java.awt.Cursor; 22 import java.awt.event.ActionListener; 22 23 23 24 public class PanelChan extends JPanel { … … 47 48 catButtons.add(prefStbdButton); 48 49 catButtons.add(safeWaterButton); 50 ActionListener alCat = new ActionListener() { 51 public void actionPerformed(java.awt.event.ActionEvent e) { 52 if (portButton.isSelected()) { 53 portButton.setEnabled(false); 54 // panelPort.setVisible(true); 55 } else { 56 portButton.setEnabled(true); 57 // panelPort.setVisible(false); 58 } 59 stbdButton.setEnabled(!stbdButton.isSelected()); 60 prefPortButton.setEnabled(!prefPortButton.isSelected()); 61 prefStbdButton.setEnabled(!prefStbdButton.isSelected()); 62 safeWaterButton.setEnabled(!safeWaterButton.isSelected()); 63 } 64 }; 65 portButton.addActionListener(alCat); 66 stbdButton.addActionListener(alCat); 67 prefPortButton.addActionListener(alCat); 68 prefStbdButton.addActionListener(alCat); 69 safeWaterButton.addActionListener(alCat); 49 70 } 50 71 … … 53 74 portButton = new JRadioButton(new ImageIcon(getClass().getResource( 54 75 Messages.getString("PortButton")))); 55 portButton.setBounds(new Rectangle(0, 0, 105, 40));76 portButton.setBounds(new Rectangle(0, 0, 105, 32)); 56 77 portButton.setToolTipText(Messages.getString("PortTip")); 57 78 } … … 63 84 stbdButton = new JRadioButton(new ImageIcon(getClass().getResource( 64 85 Messages.getString("StbdButton")))); 65 stbdButton.setBounds(new Rectangle(0, 32, 105, 40));86 stbdButton.setBounds(new Rectangle(0, 32, 105, 32)); 66 87 stbdButton.setToolTipText(Messages.getString("StbdTip")); 67 88 } … … 73 94 prefPortButton = new JRadioButton(new ImageIcon(getClass().getResource( 74 95 Messages.getString("PrefPortButton")))); 75 prefPortButton.setBounds(new Rectangle(0, 64, 105, 40));96 prefPortButton.setBounds(new Rectangle(0, 64, 105, 32)); 76 97 prefPortButton.setToolTipText(Messages.getString("PrefPortTip")); 77 98 } … … 83 104 prefStbdButton = new JRadioButton(new ImageIcon(getClass().getResource( 84 105 Messages.getString("PrefStbdButton")))); 85 prefStbdButton.setBounds(new Rectangle(0, 96, 105, 40));106 prefStbdButton.setBounds(new Rectangle(0, 96, 105, 32)); 86 107 prefStbdButton.setToolTipText(Messages.getString("PrefStbdTip")); 87 108 } … … 93 114 safeWaterButton = new JRadioButton(new ImageIcon(getClass().getResource( 94 115 Messages.getString("SafeWaterButton")))); 95 safeWaterButton.setBounds(new Rectangle(0, 128, 105, 40));116 safeWaterButton.setBounds(new Rectangle(0, 128, 105, 32)); 96 117 safeWaterButton.setToolTipText(Messages.getString("SafeWaterTip")); 97 118 }
Note:
See TracChangeset
for help on using the changeset viewer.