Changeset 24724 in osm for applications/editors/josm/plugins/smed
- Timestamp:
- 2010-12-12T22:04:28+01:00 (14 years ago)
- Location:
- applications/editors/josm/plugins/smed/plugs/oseam/src/oseam/panels
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/smed/plugs/oseam/src/oseam/panels/PanelChan.java
r24658 r24724 77 77 public void actionPerformed(java.awt.event.ActionEvent e) { 78 78 if (portButton.isSelected()) { 79 portButton.set Enabled(false);79 portButton.setBorderPainted(true); 80 80 panelPort.setVisible(true); 81 81 } else { 82 portButton.set Enabled(true);82 portButton.setBorderPainted(false); 83 83 panelPort.setVisible(false); 84 84 } 85 85 if (stbdButton.isSelected()) { 86 stbdButton.set Enabled(false);86 stbdButton.setBorderPainted(true); 87 87 panelStbd.setVisible(true); 88 88 } else { 89 stbdButton.set Enabled(true);89 stbdButton.setBorderPainted(false); 90 90 panelStbd.setVisible(false); 91 91 } 92 92 if (prefPortButton.isSelected()) { 93 prefPortButton.set Enabled(false);93 prefPortButton.setBorderPainted(true); 94 94 panelPrefPort.setVisible(true); 95 95 } else { 96 prefPortButton.set Enabled(true);96 prefPortButton.setBorderPainted(false); 97 97 panelPrefPort.setVisible(false); 98 98 } 99 99 if (prefStbdButton.isSelected()) { 100 prefStbdButton.set Enabled(false);100 prefStbdButton.setBorderPainted(true); 101 101 panelPrefStbd.setVisible(true); 102 102 } else { 103 prefStbdButton.set Enabled(true);103 prefStbdButton.setBorderPainted(false); 104 104 panelPrefStbd.setVisible(false); 105 105 } 106 106 if (safeWaterButton.isSelected()) { 107 safeWaterButton.set Enabled(false);107 safeWaterButton.setBorderPainted(true); 108 108 panelSafeWater.setVisible(true); 109 109 } else { 110 safeWaterButton.set Enabled(true);110 safeWaterButton.setBorderPainted(false); 111 111 panelSafeWater.setVisible(false); 112 112 } … … 124 124 portButton = new JRadioButton(new ImageIcon(getClass().getResource( 125 125 "/images/PortButton.png"))); 126 portButton.setBounds(new Rectangle(0, 0, 55, 32)); 126 portButton.setBounds(new Rectangle(0, 0, 52, 32)); 127 portButton.setBorder(BorderFactory.createLineBorder(Color.magenta, 2)); 127 128 portButton.setToolTipText(Messages.getString("PortTip")); 128 129 } … … 134 135 stbdButton = new JRadioButton(new ImageIcon(getClass().getResource( 135 136 "/images/StbdButton.png"))); 136 stbdButton.setBounds(new Rectangle(0, 32, 55, 32)); 137 stbdButton.setBounds(new Rectangle(0, 32, 52, 32)); 138 stbdButton.setBorder(BorderFactory.createLineBorder(Color.magenta, 2)); 137 139 stbdButton.setToolTipText(Messages.getString("StbdTip")); 138 140 } … … 144 146 prefPortButton = new JRadioButton(new ImageIcon(getClass() 145 147 .getResource("/images/PrefPortButton.png"))); 146 prefPortButton.setBounds(new Rectangle(0, 64, 55, 32)); 148 prefPortButton.setBounds(new Rectangle(0, 64, 52, 32)); 149 prefPortButton.setBorder(BorderFactory.createLineBorder(Color.magenta, 2)); 147 150 prefPortButton.setToolTipText(Messages.getString("PrefPortTip")); 148 151 } … … 154 157 prefStbdButton = new JRadioButton(new ImageIcon(getClass() 155 158 .getResource("/images/PrefStbdButton.png"))); 156 prefStbdButton.setBounds(new Rectangle(0, 96, 55, 32)); 159 prefStbdButton.setBounds(new Rectangle(0, 96, 52, 32)); 160 prefStbdButton.setBorder(BorderFactory.createLineBorder(Color.magenta, 2)); 157 161 prefStbdButton.setToolTipText(Messages.getString("PrefStbdTip")); 158 162 } … … 164 168 safeWaterButton = new JRadioButton(new ImageIcon(getClass() 165 169 .getResource("/images/SafeWaterButton.png"))); 166 safeWaterButton.setBounds(new Rectangle(0, 128, 55, 32)); 170 safeWaterButton.setBounds(new Rectangle(0, 128, 52, 32)); 171 safeWaterButton.setBorder(BorderFactory.createLineBorder(Color.magenta, 2)); 167 172 safeWaterButton.setToolTipText(Messages.getString("SafeWaterTip")); 168 173 } -
applications/editors/josm/plugins/smed/plugs/oseam/src/oseam/panels/PanelHaz.java
r24695 r24724 58 58 ActionListener alCat = new ActionListener() { 59 59 public void actionPerformed(java.awt.event.ActionEvent e) { 60 northButton.set Enabled(!northButton.isSelected());61 southButton.set Enabled(!southButton.isSelected());62 eastButton.set Enabled(!eastButton.isSelected());63 westButton.set Enabled(!westButton.isSelected());64 isolButton.set Enabled(!isolButton.isSelected());60 northButton.setBorderPainted(northButton.isSelected()); 61 southButton.setBorderPainted(southButton.isSelected()); 62 eastButton.setBorderPainted(eastButton.isSelected()); 63 westButton.setBorderPainted(westButton.isSelected()); 64 isolButton.setBorderPainted(isolButton.isSelected()); 65 65 } 66 66 }; … … 84 84 ActionListener alShape = new ActionListener() { 85 85 public void actionPerformed(java.awt.event.ActionEvent e) { 86 pillarButton.set Enabled(!pillarButton.isSelected());87 sparButton.set Enabled(!sparButton.isSelected());88 floatButton.set Enabled(!floatButton.isSelected());89 beaconButton.set Enabled(!beaconButton.isSelected());90 towerButton.set Enabled(!towerButton.isSelected());86 pillarButton.setBorderPainted(pillarButton.isSelected()); 87 sparButton.setBorderPainted(sparButton.isSelected()); 88 floatButton.setBorderPainted(floatButton.isSelected()); 89 beaconButton.setBorderPainted(beaconButton.isSelected()); 90 towerButton.setBorderPainted(towerButton.isSelected()); 91 91 } 92 92 }; … … 102 102 northButton = new JRadioButton(new ImageIcon(getClass() 103 103 .getResource("/images/CardNButton.png"))); 104 northButton.setBounds(new Rectangle(0, 0, 55, 32)); 104 northButton.setBounds(new Rectangle(0, 0, 52, 32)); 105 northButton.setBorder(BorderFactory.createLineBorder(Color.magenta, 2)); 105 106 northButton.setToolTipText(Messages.getString("NorthTip")); 106 107 } … … 112 113 southButton = new JRadioButton(new ImageIcon(getClass() 113 114 .getResource("/images/CardSButton.png"))); 114 southButton.setBounds(new Rectangle(0, 32, 55, 32)); 115 southButton.setBounds(new Rectangle(0, 32, 52, 32)); 116 southButton.setBorder(BorderFactory.createLineBorder(Color.magenta, 2)); 115 117 southButton.setToolTipText(Messages.getString("SouthTip")); 116 118 } … … 122 124 eastButton = new JRadioButton(new ImageIcon(getClass().getResource( 123 125 "/images/CardEButton.png"))); 124 eastButton.setBounds(new Rectangle(0, 64, 55, 32)); 126 eastButton.setBounds(new Rectangle(0, 64, 52, 32)); 127 eastButton.setBorder(BorderFactory.createLineBorder(Color.magenta, 2)); 125 128 eastButton.setToolTipText(Messages.getString("EastTip")); 126 129 } … … 132 135 westButton = new JRadioButton(new ImageIcon(getClass().getResource( 133 136 "/images/CardWButton.png"))); 134 westButton.setBounds(new Rectangle(0, 96, 55, 32)); 137 westButton.setBounds(new Rectangle(0, 96, 52, 32)); 138 westButton.setBorder(BorderFactory.createLineBorder(Color.magenta, 2)); 135 139 westButton.setToolTipText(Messages.getString("WestTip")); 136 140 } … … 142 146 isolButton = new JRadioButton(new ImageIcon(getClass().getResource( 143 147 "/images/IsolButton.png"))); 144 isolButton.setBounds(new Rectangle(0, 128, 55, 32)); 148 isolButton.setBounds(new Rectangle(0, 128, 52, 32)); 149 isolButton.setBorder(BorderFactory.createLineBorder(Color.magenta, 2)); 145 150 isolButton.setToolTipText(Messages.getString("IsolTip")); 146 151 } … … 152 157 pillarButton = new JRadioButton(new ImageIcon(getClass() 153 158 .getResource("/images/PillarButton.png"))); 154 pillarButton.setBounds(new Rectangle(55, 0, 90, 32)); 159 pillarButton.setBounds(new Rectangle(55, 0, 34, 32)); 160 pillarButton.setBorder(BorderFactory.createLineBorder(Color.magenta, 2)); 155 161 pillarButton.setToolTipText(Messages.getString("PillarTip")); 156 162 } … … 162 168 sparButton = new JRadioButton(new ImageIcon(getClass().getResource( 163 169 "/images/SparButton.png"))); 164 sparButton.setBounds(new Rectangle(55, 32, 90, 32)); 170 sparButton.setBounds(new Rectangle(55, 32, 34, 32)); 171 sparButton.setBorder(BorderFactory.createLineBorder(Color.magenta, 2)); 165 172 sparButton.setToolTipText(Messages.getString("SparTip")); 166 173 } … … 172 179 floatButton = new JRadioButton(new ImageIcon(getClass() 173 180 .getResource("/images/FloatButton.png"))); 174 floatButton.setBounds(new Rectangle(55, 64, 90, 32)); 181 floatButton.setBounds(new Rectangle(55, 64, 34, 32)); 182 floatButton.setBorder(BorderFactory.createLineBorder(Color.magenta, 2)); 175 183 floatButton.setToolTipText(Messages.getString("FloatTip")); 176 184 } … … 182 190 beaconButton = new JRadioButton(new ImageIcon(getClass() 183 191 .getResource("/images/BeaconButton.png"))); 184 beaconButton.setBounds(new Rectangle(55, 96, 90, 32)); 192 beaconButton.setBounds(new Rectangle(55, 96, 34, 32)); 193 beaconButton.setBorder(BorderFactory.createLineBorder(Color.magenta, 2)); 185 194 beaconButton.setToolTipText(Messages.getString("BeaconTip")); 186 195 } … … 192 201 towerButton = new JRadioButton(new ImageIcon(getClass() 193 202 .getResource("/images/TowerButton.png"))); 194 towerButton.setBounds(new Rectangle(55, 128, 90, 32)); 203 towerButton.setBounds(new Rectangle(55, 128, 34, 32)); 204 towerButton.setBorder(BorderFactory.createLineBorder(Color.magenta, 2)); 195 205 towerButton.setToolTipText(Messages.getString("TowerTip")); 196 206 } -
applications/editors/josm/plugins/smed/plugs/oseam/src/oseam/panels/PanelLights.java
r24665 r24724 51 51 ActionListener alCat = new ActionListener() { 52 52 public void actionPerformed(java.awt.event.ActionEvent e) { 53 houseButton.set Enabled(!houseButton.isSelected());54 majorButton.set Enabled(!majorButton.isSelected());55 minorButton.set Enabled(!minorButton.isSelected());56 vesselButton.set Enabled(!vesselButton.isSelected());57 floatButton.set Enabled(!floatButton.isSelected());53 houseButton.setBorderPainted(houseButton.isSelected()); 54 majorButton.setBorderPainted(majorButton.isSelected()); 55 minorButton.setBorderPainted(minorButton.isSelected()); 56 vesselButton.setBorderPainted(vesselButton.isSelected()); 57 floatButton.setBorderPainted(floatButton.isSelected()); 58 58 } 59 59 }; … … 69 69 houseButton = new JRadioButton(new ImageIcon(getClass() 70 70 .getResource("/images/LighthouseButton.png"))); 71 houseButton.setBounds(new Rectangle(0, 0, 35, 32)); 71 houseButton.setBounds(new Rectangle(0, 0, 34, 32)); 72 houseButton.setBorder(BorderFactory.createLineBorder(Color.magenta, 2)); 72 73 houseButton.setToolTipText(Messages.getString("LighthouseTip")); 73 74 } … … 79 80 majorButton = new JRadioButton(new ImageIcon(getClass() 80 81 .getResource("/images/LightMajorButton.png"))); 81 majorButton.setBounds(new Rectangle(0, 32, 35, 32)); 82 majorButton.setBounds(new Rectangle(0, 32, 34, 32)); 83 majorButton.setBorder(BorderFactory.createLineBorder(Color.magenta, 2)); 82 84 majorButton.setToolTipText(Messages.getString("MajorLightTip")); 83 85 } … … 89 91 minorButton = new JRadioButton(new ImageIcon(getClass() 90 92 .getResource("/images/LightMinorButton.png"))); 91 minorButton.setBounds(new Rectangle(0, 64, 35, 32)); 93 minorButton.setBounds(new Rectangle(0, 64, 34, 32)); 94 minorButton.setBorder(BorderFactory.createLineBorder(Color.magenta, 2)); 92 95 minorButton.setToolTipText(Messages.getString("MinorLightTip")); 93 96 } … … 99 102 vesselButton = new JRadioButton(new ImageIcon(getClass() 100 103 .getResource("/images/LightVesselButton.png"))); 101 vesselButton.setBounds(new Rectangle(0, 96, 35, 32)); 104 vesselButton.setBounds(new Rectangle(0, 96, 34, 32)); 105 vesselButton.setBorder(BorderFactory.createLineBorder(Color.magenta, 2)); 102 106 vesselButton.setToolTipText(Messages.getString("LightVesselTip")); 103 107 } … … 109 113 floatButton = new JRadioButton(new ImageIcon(getClass() 110 114 .getResource("/images/LightFloatButton.png"))); 111 floatButton.setBounds(new Rectangle(0, 128, 35, 32)); 115 floatButton.setBounds(new Rectangle(0, 128, 34, 32)); 116 floatButton.setBorder(BorderFactory.createLineBorder(Color.magenta, 2)); 112 117 floatButton.setToolTipText(Messages.getString("LightFloatTip")); 113 118 } -
applications/editors/josm/plugins/smed/plugs/oseam/src/oseam/panels/PanelPort.java
r24695 r24724 58 58 ActionListener alRegion = new ActionListener() { 59 59 public void actionPerformed(java.awt.event.ActionEvent e) { 60 if (regionAButton.isSelected()) { 61 regionAButton.setEnabled(false); 62 } else { 63 regionAButton.setEnabled(true); 64 } 65 if (regionBButton.isSelected()) { 66 regionBButton.setEnabled(false); 67 } else { 68 regionBButton.setEnabled(true); 69 } 60 regionAButton.setBorderPainted(regionAButton.isSelected()); 61 regionBButton.setBorderPainted(regionBButton.isSelected()); 70 62 } 71 63 }; … … 83 75 ActionListener alShape = new ActionListener() { 84 76 public void actionPerformed(java.awt.event.ActionEvent e) { 85 pillarButton.set Enabled(!pillarButton.isSelected());86 sparButton.set Enabled(!sparButton.isSelected());87 canButton.set Enabled(!canButton.isSelected());88 floatButton.set Enabled(!floatButton.isSelected());89 beaconButton.set Enabled(!beaconButton.isSelected());90 towerButton.set Enabled(!towerButton.isSelected());91 perchButton.set Enabled(!perchButton.isSelected());77 pillarButton.setBorderPainted(pillarButton.isSelected()); 78 sparButton.setBorderPainted(sparButton.isSelected()); 79 canButton.setBorderPainted(canButton.isSelected()); 80 floatButton.setBorderPainted(floatButton.isSelected()); 81 beaconButton.setBorderPainted(beaconButton.isSelected()); 82 towerButton.setBorderPainted(towerButton.isSelected()); 83 perchButton.setBorderPainted(perchButton.isSelected()); 92 84 } 93 85 }; … … 105 97 regionAButton = new JRadioButton(new ImageIcon(getClass() 106 98 .getResource("/images/RegionAButton.png"))); 107 regionAButton.setBounds(new Rectangle(0, 2, 35, 30)); 99 regionAButton.setBounds(new Rectangle(0, 2, 34, 30)); 100 regionAButton.setBorder(BorderFactory.createLineBorder(Color.magenta, 2)); 108 101 regionAButton.setToolTipText(Messages.getString("RegionATip")); 109 102 } … … 115 108 regionBButton = new JRadioButton(new ImageIcon(getClass() 116 109 .getResource("/images/RegionBButton.png"))); 117 regionBButton.setBounds(new Rectangle(0, 32, 35, 30)); 110 regionBButton.setBounds(new Rectangle(0, 32, 34, 30)); 111 regionBButton.setBorder(BorderFactory.createLineBorder(Color.magenta, 2)); 118 112 regionBButton.setToolTipText(Messages.getString("RegionBTip")); 119 113 } … … 125 119 pillarButton = new JRadioButton(new ImageIcon(getClass() 126 120 .getResource("/images/PillarButton.png"))); 127 pillarButton.setBounds(new Rectangle(0, 64, 35, 32)); 121 pillarButton.setBounds(new Rectangle(0, 64, 34, 32)); 122 pillarButton.setBorder(BorderFactory.createLineBorder(Color.magenta, 2)); 128 123 pillarButton.setToolTipText(Messages.getString("PillarTip")); 129 124 } … … 135 130 sparButton = new JRadioButton(new ImageIcon(getClass().getResource( 136 131 "/images/SparButton.png"))); 137 sparButton.setBounds(new Rectangle(0, 96, 35, 32)); 132 sparButton.setBounds(new Rectangle(0, 96, 34, 32)); 133 sparButton.setBorder(BorderFactory.createLineBorder(Color.magenta, 2)); 138 134 sparButton.setToolTipText(Messages.getString("SparTip")); 139 135 } … … 145 141 canButton = new JRadioButton(new ImageIcon(getClass().getResource( 146 142 "/images/CanButton.png"))); 147 canButton.setBounds(new Rectangle(0, 128, 35, 32)); 143 canButton.setBounds(new Rectangle(0, 128, 34, 32)); 144 canButton.setBorder(BorderFactory.createLineBorder(Color.magenta, 2)); 148 145 canButton.setToolTipText(Messages.getString("CanTip")); 149 146 } … … 155 152 floatButton = new JRadioButton(new ImageIcon(getClass() 156 153 .getResource("/images/FloatButton.png"))); 157 floatButton.setBounds(new Rectangle(35, 0, 35, 32)); 154 floatButton.setBounds(new Rectangle(35, 0, 34, 32)); 155 floatButton.setBorder(BorderFactory.createLineBorder(Color.magenta, 2)); 158 156 floatButton.setToolTipText(Messages.getString("FloatTip")); 159 157 } … … 165 163 beaconButton = new JRadioButton(new ImageIcon(getClass() 166 164 .getResource("/images/BeaconButton.png"))); 167 beaconButton.setBounds(new Rectangle(35, 32, 35, 32)); 165 beaconButton.setBounds(new Rectangle(35, 32, 34, 32)); 166 beaconButton.setBorder(BorderFactory.createLineBorder(Color.magenta, 2)); 168 167 beaconButton.setToolTipText(Messages.getString("BeaconTip")); 169 168 } … … 175 174 towerButton = new JRadioButton(new ImageIcon(getClass() 176 175 .getResource("/images/TowerButton.png"))); 177 towerButton.setBounds(new Rectangle(35, 64, 35, 32)); 176 towerButton.setBounds(new Rectangle(35, 64, 34, 32)); 177 towerButton.setBorder(BorderFactory.createLineBorder(Color.magenta, 2)); 178 178 towerButton.setToolTipText(Messages.getString("TowerTip")); 179 179 } … … 185 185 perchButton = new JRadioButton(new ImageIcon(getClass() 186 186 .getResource("/images/PerchPButton.png"))); 187 perchButton.setBounds(new Rectangle(35, 96, 35, 32)); 187 perchButton.setBounds(new Rectangle(35, 96, 34, 32)); 188 perchButton.setBorder(BorderFactory.createLineBorder(Color.magenta, 2)); 188 189 perchButton.setToolTipText(Messages.getString("PerchTip")); 189 190 } -
applications/editors/josm/plugins/smed/plugs/oseam/src/oseam/panels/PanelPrefPort.java
r24695 r24724 56 56 ActionListener alRegion = new ActionListener() { 57 57 public void actionPerformed(java.awt.event.ActionEvent e) { 58 if (regionAButton.isSelected()) { 59 regionAButton.setEnabled(false); 60 } else { 61 regionAButton.setEnabled(true); 62 } 63 if (regionBButton.isSelected()) { 64 regionBButton.setEnabled(false); 65 } else { 66 regionBButton.setEnabled(true); 67 } 58 regionAButton.setBorderPainted(regionAButton.isSelected()); 59 regionBButton.setBorderPainted(regionBButton.isSelected()); 68 60 } 69 61 }; … … 80 72 ActionListener alShape = new ActionListener() { 81 73 public void actionPerformed(java.awt.event.ActionEvent e) { 82 pillarButton.set Enabled(!pillarButton.isSelected());83 sparButton.set Enabled(!sparButton.isSelected());84 canButton.set Enabled(!canButton.isSelected());85 floatButton.set Enabled(!floatButton.isSelected());86 beaconButton.set Enabled(!beaconButton.isSelected());87 towerButton.set Enabled(!towerButton.isSelected());74 pillarButton.setBorderPainted(pillarButton.isSelected()); 75 sparButton.setBorderPainted(sparButton.isSelected()); 76 canButton.setBorderPainted(canButton.isSelected()); 77 floatButton.setBorderPainted(floatButton.isSelected()); 78 beaconButton.setBorderPainted(beaconButton.isSelected()); 79 towerButton.setBorderPainted(towerButton.isSelected()); 88 80 } 89 81 }; … … 100 92 regionAButton = new JRadioButton(new ImageIcon(getClass() 101 93 .getResource("/images/RegionAButton.png"))); 102 regionAButton.setBounds(new Rectangle(0, 2, 35, 30)); 94 regionAButton.setBounds(new Rectangle(0, 2, 34, 30)); 95 regionAButton.setBorder(BorderFactory.createLineBorder(Color.magenta, 2)); 103 96 regionAButton.setToolTipText(Messages.getString("RegionATip")); 104 97 } … … 110 103 regionBButton = new JRadioButton(new ImageIcon(getClass() 111 104 .getResource("/images/RegionBButton.png"))); 112 regionBButton.setBounds(new Rectangle(0, 32, 35, 30)); 105 regionBButton.setBounds(new Rectangle(0, 32, 34, 30)); 106 regionBButton.setBorder(BorderFactory.createLineBorder(Color.magenta, 2)); 113 107 regionBButton.setToolTipText(Messages.getString("RegionBTip")); 114 108 } … … 120 114 pillarButton = new JRadioButton(new ImageIcon(getClass() 121 115 .getResource("/images/PillarButton.png"))); 122 pillarButton.setBounds(new Rectangle(0, 64, 35, 32)); 116 pillarButton.setBounds(new Rectangle(0, 64, 34, 32)); 117 pillarButton.setBorder(BorderFactory.createLineBorder(Color.magenta, 2)); 123 118 pillarButton.setToolTipText(Messages.getString("PillarTip")); 124 119 } … … 130 125 sparButton = new JRadioButton(new ImageIcon(getClass().getResource( 131 126 "/images/SparButton.png"))); 132 sparButton.setBounds(new Rectangle(0, 96, 35, 32)); 127 sparButton.setBounds(new Rectangle(0, 96, 34, 32)); 128 sparButton.setBorder(BorderFactory.createLineBorder(Color.magenta, 2)); 133 129 sparButton.setToolTipText(Messages.getString("SparTip")); 134 130 } … … 140 136 canButton = new JRadioButton(new ImageIcon(getClass().getResource( 141 137 "/images/CanButton.png"))); 142 canButton.setBounds(new Rectangle(0, 128, 35, 32)); 138 canButton.setBounds(new Rectangle(0, 128, 34, 32)); 139 canButton.setBorder(BorderFactory.createLineBorder(Color.magenta, 2)); 143 140 canButton.setToolTipText(Messages.getString("CanTip")); 144 141 } … … 150 147 floatButton = new JRadioButton(new ImageIcon(getClass() 151 148 .getResource("/images/FloatButton.png"))); 152 floatButton.setBounds(new Rectangle(35, 0, 35, 32)); 149 floatButton.setBounds(new Rectangle(35, 0, 34, 32)); 150 floatButton.setBorder(BorderFactory.createLineBorder(Color.magenta, 2)); 153 151 floatButton.setToolTipText(Messages.getString("FloatTip")); 154 152 } … … 160 158 beaconButton = new JRadioButton(new ImageIcon(getClass() 161 159 .getResource("/images/BeaconButton.png"))); 162 beaconButton.setBounds(new Rectangle(35, 32, 35, 32)); 160 beaconButton.setBounds(new Rectangle(35, 32, 34, 32)); 161 beaconButton.setBorder(BorderFactory.createLineBorder(Color.magenta, 2)); 163 162 beaconButton.setToolTipText(Messages.getString("BeaconTip")); 164 163 } … … 170 169 towerButton = new JRadioButton(new ImageIcon(getClass() 171 170 .getResource("/images/TowerButton.png"))); 172 towerButton.setBounds(new Rectangle(35, 64, 35, 32)); 171 towerButton.setBounds(new Rectangle(35, 64, 34, 32)); 172 towerButton.setBorder(BorderFactory.createLineBorder(Color.magenta, 2)); 173 173 towerButton.setToolTipText(Messages.getString("TowerTip")); 174 174 } -
applications/editors/josm/plugins/smed/plugs/oseam/src/oseam/panels/PanelPrefStbd.java
r24695 r24724 56 56 ActionListener alRegion = new ActionListener() { 57 57 public void actionPerformed(java.awt.event.ActionEvent e) { 58 if (regionAButton.isSelected()) { 59 regionAButton.setEnabled(false); 60 } else { 61 regionAButton.setEnabled(true); 62 } 63 if (regionBButton.isSelected()) { 64 regionBButton.setEnabled(false); 65 } else { 66 regionBButton.setEnabled(true); 67 } 58 regionAButton.setBorderPainted(regionAButton.isSelected()); 59 regionBButton.setBorderPainted(regionBButton.isSelected()); 68 60 } 69 61 }; … … 80 72 ActionListener alShape = new ActionListener() { 81 73 public void actionPerformed(java.awt.event.ActionEvent e) { 82 pillarButton.set Enabled(!pillarButton.isSelected());83 sparButton.set Enabled(!sparButton.isSelected());84 coneButton.set Enabled(!coneButton.isSelected());85 floatButton.set Enabled(!floatButton.isSelected());86 beaconButton.set Enabled(!beaconButton.isSelected());87 towerButton.set Enabled(!towerButton.isSelected());74 pillarButton.setBorderPainted(pillarButton.isSelected()); 75 sparButton.setBorderPainted(sparButton.isSelected()); 76 coneButton.setBorderPainted(coneButton.isSelected()); 77 floatButton.setBorderPainted(floatButton.isSelected()); 78 beaconButton.setBorderPainted(beaconButton.isSelected()); 79 towerButton.setBorderPainted(towerButton.isSelected()); 88 80 } 89 81 }; … … 100 92 regionAButton = new JRadioButton(new ImageIcon(getClass() 101 93 .getResource("/images/RegionAButton.png"))); 102 regionAButton.setBounds(new Rectangle(0, 2, 35, 30)); 94 regionAButton.setBounds(new Rectangle(0, 2, 34, 30)); 95 regionAButton.setBorder(BorderFactory.createLineBorder(Color.magenta, 2)); 103 96 regionAButton.setToolTipText(Messages.getString("RegionATip")); 104 97 } … … 110 103 regionBButton = new JRadioButton(new ImageIcon(getClass() 111 104 .getResource("/images/RegionBButton.png"))); 112 regionBButton.setBounds(new Rectangle(0, 32, 35, 30)); 105 regionBButton.setBounds(new Rectangle(0, 32, 34, 30)); 106 regionBButton.setBorder(BorderFactory.createLineBorder(Color.magenta, 2)); 113 107 regionBButton.setToolTipText(Messages.getString("RegionBTip")); 114 108 } … … 120 114 pillarButton = new JRadioButton(new ImageIcon(getClass() 121 115 .getResource("/images/PillarButton.png"))); 122 pillarButton.setBounds(new Rectangle(0, 64, 35, 32)); 116 pillarButton.setBounds(new Rectangle(0, 64, 34, 32)); 117 pillarButton.setBorder(BorderFactory.createLineBorder(Color.magenta, 2)); 123 118 pillarButton.setToolTipText(Messages.getString("PillarTip")); 124 119 } … … 130 125 sparButton = new JRadioButton(new ImageIcon(getClass().getResource( 131 126 "/images/SparButton.png"))); 132 sparButton.setBounds(new Rectangle(0, 96, 35, 32)); 127 sparButton.setBounds(new Rectangle(0, 96, 34, 32)); 128 sparButton.setBorder(BorderFactory.createLineBorder(Color.magenta, 2)); 133 129 sparButton.setToolTipText(Messages.getString("SparTip")); 134 130 } … … 140 136 coneButton = new JRadioButton(new ImageIcon(getClass().getResource( 141 137 "/images/ConeButton.png"))); 142 coneButton.setBounds(new Rectangle(0, 128, 35, 32)); 138 coneButton.setBounds(new Rectangle(0, 128, 34, 32)); 139 coneButton.setBorder(BorderFactory.createLineBorder(Color.magenta, 2)); 143 140 coneButton.setToolTipText(Messages.getString("ConeTip")); 144 141 } … … 150 147 floatButton = new JRadioButton(new ImageIcon(getClass() 151 148 .getResource("/images/FloatButton.png"))); 152 floatButton.setBounds(new Rectangle(35, 0, 35, 32)); 149 floatButton.setBounds(new Rectangle(35, 0, 34, 32)); 150 floatButton.setBorder(BorderFactory.createLineBorder(Color.magenta, 2)); 153 151 floatButton.setToolTipText(Messages.getString("FloatTip")); 154 152 } … … 160 158 beaconButton = new JRadioButton(new ImageIcon(getClass() 161 159 .getResource("/images/BeaconButton.png"))); 162 beaconButton.setBounds(new Rectangle(35, 32, 35, 32)); 160 beaconButton.setBounds(new Rectangle(35, 32, 34, 32)); 161 beaconButton.setBorder(BorderFactory.createLineBorder(Color.magenta, 2)); 163 162 beaconButton.setToolTipText(Messages.getString("BeaconTip")); 164 163 } … … 170 169 towerButton = new JRadioButton(new ImageIcon(getClass() 171 170 .getResource("/images/TowerButton.png"))); 172 towerButton.setBounds(new Rectangle(35, 64, 35, 32)); 171 towerButton.setBounds(new Rectangle(35, 64, 34, 32)); 172 towerButton.setBorder(BorderFactory.createLineBorder(Color.magenta, 2)); 173 173 towerButton.setToolTipText(Messages.getString("TowerTip")); 174 174 } -
applications/editors/josm/plugins/smed/plugs/oseam/src/oseam/panels/PanelSafeWater.java
r24695 r24724 52 52 ActionListener alShape = new ActionListener() { 53 53 public void actionPerformed(java.awt.event.ActionEvent e) { 54 pillarButton.set Enabled(!pillarButton.isSelected());55 sparButton.set Enabled(!sparButton.isSelected());56 sphereButton.set Enabled(!sphereButton.isSelected());57 barrelButton.set Enabled(!barrelButton.isSelected());58 floatButton.set Enabled(!floatButton.isSelected());54 pillarButton.setBorderPainted(pillarButton.isSelected()); 55 sparButton.setBorderPainted(sparButton.isSelected()); 56 sphereButton.setBorderPainted(sphereButton.isSelected()); 57 barrelButton.setBorderPainted(barrelButton.isSelected()); 58 floatButton.setBorderPainted(floatButton.isSelected()); 59 59 } 60 60 }; … … 70 70 pillarButton = new JRadioButton(new ImageIcon(getClass() 71 71 .getResource("/images/PillarButton.png"))); 72 pillarButton.setBounds(new Rectangle(0, 0, 35, 32)); 72 pillarButton.setBounds(new Rectangle(0, 0, 34, 32)); 73 pillarButton.setBorder(BorderFactory.createLineBorder(Color.magenta, 2)); 73 74 pillarButton.setToolTipText(Messages.getString("PillarTip")); 74 75 } … … 80 81 sparButton = new JRadioButton(new ImageIcon(getClass().getResource( 81 82 "/images/SparButton.png"))); 82 sparButton.setBounds(new Rectangle(0, 32, 35, 32)); 83 sparButton.setBounds(new Rectangle(0, 32, 34, 32)); 84 sparButton.setBorder(BorderFactory.createLineBorder(Color.magenta, 2)); 83 85 sparButton.setToolTipText(Messages.getString("SparTip")); 84 86 } … … 90 92 sphereButton = new JRadioButton(new ImageIcon(getClass() 91 93 .getResource("/images/SphereButton.png"))); 92 sphereButton.setBounds(new Rectangle(0, 64, 35, 32)); 94 sphereButton.setBounds(new Rectangle(0, 64, 34, 32)); 95 sphereButton.setBorder(BorderFactory.createLineBorder(Color.magenta, 2)); 93 96 sphereButton.setToolTipText(Messages.getString("SphereTip")); 94 97 } … … 100 103 barrelButton = new JRadioButton(new ImageIcon(getClass() 101 104 .getResource("/images/BarrelButton.png"))); 102 barrelButton.setBounds(new Rectangle(0, 96, 35, 32)); 105 barrelButton.setBounds(new Rectangle(0, 96, 34, 32)); 106 barrelButton.setBorder(BorderFactory.createLineBorder(Color.magenta, 2)); 103 107 barrelButton.setToolTipText(Messages.getString("BarrelTip")); 104 108 } … … 110 114 floatButton = new JRadioButton(new ImageIcon(getClass() 111 115 .getResource("/images/FloatButton.png"))); 112 floatButton.setBounds(new Rectangle(0, 128, 35, 32)); 116 floatButton.setBounds(new Rectangle(0, 128, 34, 32)); 117 floatButton.setBorder(BorderFactory.createLineBorder(Color.magenta, 2)); 113 118 floatButton.setToolTipText(Messages.getString("FloatTip")); 114 119 } -
applications/editors/josm/plugins/smed/plugs/oseam/src/oseam/panels/PanelSpec.java
r24695 r24724 80 80 ActionListener alShape = new ActionListener() { 81 81 public void actionPerformed(java.awt.event.ActionEvent e) { 82 pillarButton.set Enabled(!pillarButton.isSelected());83 sparButton.set Enabled(!sparButton.isSelected());84 canButton.set Enabled(!canButton.isSelected());85 coneButton.set Enabled(!coneButton.isSelected());86 sphereButton.set Enabled(!sphereButton.isSelected());87 barrelButton.set Enabled(!barrelButton.isSelected());88 superButton.set Enabled(!superButton.isSelected());89 floatButton.set Enabled(!floatButton.isSelected());90 beaconButton.set Enabled(!beaconButton.isSelected());91 towerButton.set Enabled(!towerButton.isSelected());82 pillarButton.setBorderPainted(pillarButton.isSelected()); 83 sparButton.setBorderPainted(sparButton.isSelected()); 84 canButton.setBorderPainted(canButton.isSelected()); 85 coneButton.setBorderPainted(coneButton.isSelected()); 86 sphereButton.setBorderPainted(sphereButton.isSelected()); 87 barrelButton.setBorderPainted(barrelButton.isSelected()); 88 superButton.setBorderPainted(superButton.isSelected()); 89 floatButton.setBorderPainted(floatButton.isSelected()); 90 beaconButton.setBorderPainted(beaconButton.isSelected()); 91 towerButton.setBorderPainted(towerButton.isSelected()); 92 92 } 93 93 }; … … 128 128 ActionListener alColour = new ActionListener() { 129 129 public void actionPerformed(java.awt.event.ActionEvent e) { 130 whiteButton.set Enabled(!whiteButton.isSelected());131 redButton.set Enabled(!redButton.isSelected());132 orangeButton.set Enabled(!orangeButton.isSelected());133 amberButton.set Enabled(!amberButton.isSelected());134 yellowButton.set Enabled(!yellowButton.isSelected());135 greenButton.set Enabled(!greenButton.isSelected());136 blueButton.set Enabled(!blueButton.isSelected());137 violetButton.set Enabled(!violetButton.isSelected());138 blackButton.set Enabled(!blackButton.isSelected());130 whiteButton.setBorderPainted(whiteButton.isSelected()); 131 redButton.setBorderPainted(redButton.isSelected()); 132 orangeButton.setBorderPainted(orangeButton.isSelected()); 133 amberButton.setBorderPainted(amberButton.isSelected()); 134 yellowButton.setBorderPainted(yellowButton.isSelected()); 135 greenButton.setBorderPainted(greenButton.isSelected()); 136 blueButton.setBorderPainted(blueButton.isSelected()); 137 violetButton.setBorderPainted(violetButton.isSelected()); 138 blackButton.setBorderPainted(blackButton.isSelected()); 139 139 } 140 140 }; … … 154 154 pillarButton = new JRadioButton(new ImageIcon(getClass() 155 155 .getResource("/images/PillarButton.png"))); 156 pillarButton.setBounds(new Rectangle(55, 0, 35, 32)); 156 pillarButton.setBounds(new Rectangle(55, 0, 34, 32)); 157 pillarButton.setBorder(BorderFactory.createLineBorder(Color.magenta, 2)); 157 158 pillarButton.setToolTipText(Messages.getString("PillarTip")); 158 159 } … … 164 165 sparButton = new JRadioButton(new ImageIcon(getClass().getResource( 165 166 "/images/SparButton.png"))); 166 sparButton.setBounds(new Rectangle(55, 32, 35, 32)); 167 sparButton.setBounds(new Rectangle(55, 32, 34, 32)); 168 sparButton.setBorder(BorderFactory.createLineBorder(Color.magenta, 2)); 167 169 sparButton.setToolTipText(Messages.getString("SparTip")); 168 170 } … … 174 176 canButton = new JRadioButton(new ImageIcon(getClass().getResource( 175 177 "/images/CanButton.png"))); 176 canButton.setBounds(new Rectangle(55, 64, 35, 32)); 178 canButton.setBounds(new Rectangle(55, 64, 34, 32)); 179 canButton.setBorder(BorderFactory.createLineBorder(Color.magenta, 2)); 177 180 canButton.setToolTipText(Messages.getString("CanTip")); 178 181 } … … 184 187 coneButton = new JRadioButton(new ImageIcon(getClass().getResource( 185 188 "/images/ConeButton.png"))); 186 coneButton.setBounds(new Rectangle(55, 96, 35, 32)); 189 coneButton.setBounds(new Rectangle(55, 96, 34, 32)); 190 coneButton.setBorder(BorderFactory.createLineBorder(Color.magenta, 2)); 187 191 coneButton.setToolTipText(Messages.getString("ConeTip")); 188 192 } … … 194 198 sphereButton = new JRadioButton(new ImageIcon(getClass() 195 199 .getResource("/images/SphereButton.png"))); 196 sphereButton.setBounds(new Rectangle(55, 128, 35, 32)); 200 sphereButton.setBounds(new Rectangle(55, 128, 34, 32)); 201 sphereButton.setBorder(BorderFactory.createLineBorder(Color.magenta, 2)); 197 202 sphereButton.setToolTipText(Messages.getString("SphereTip")); 198 203 } … … 204 209 barrelButton = new JRadioButton(new ImageIcon(getClass() 205 210 .getResource("/images/BarrelButton.png"))); 206 barrelButton.setBounds(new Rectangle(90, 0, 35, 32)); 211 barrelButton.setBounds(new Rectangle(90, 0, 34, 32)); 212 barrelButton.setBorder(BorderFactory.createLineBorder(Color.magenta, 2)); 207 213 barrelButton.setToolTipText(Messages.getString("BarrelTip")); 208 214 } … … 214 220 superButton = new JRadioButton(new ImageIcon(getClass() 215 221 .getResource("/images/SuperButton.png"))); 216 superButton.setBounds(new Rectangle(90, 32, 35, 32)); 222 superButton.setBounds(new Rectangle(90, 32, 34, 32)); 223 superButton.setBorder(BorderFactory.createLineBorder(Color.magenta, 2)); 217 224 superButton.setToolTipText(Messages.getString("SuperTip")); 218 225 } … … 224 231 floatButton = new JRadioButton(new ImageIcon(getClass() 225 232 .getResource("/images/FloatButton.png"))); 226 floatButton.setBounds(new Rectangle(90, 64, 35, 32)); 233 floatButton.setBounds(new Rectangle(90, 64, 34, 32)); 234 floatButton.setBorder(BorderFactory.createLineBorder(Color.magenta, 2)); 227 235 floatButton.setToolTipText(Messages.getString("FloatTip")); 228 236 } … … 234 242 beaconButton = new JRadioButton(new ImageIcon(getClass() 235 243 .getResource("/images/BeaconButton.png"))); 236 beaconButton.setBounds(new Rectangle(90, 96, 35, 32)); 244 beaconButton.setBounds(new Rectangle(90, 96, 34, 32)); 245 beaconButton.setBorder(BorderFactory.createLineBorder(Color.magenta, 2)); 237 246 beaconButton.setToolTipText(Messages.getString("BeaconTip")); 238 247 } … … 244 253 towerButton = new JRadioButton(new ImageIcon(getClass() 245 254 .getResource("/images/TowerButton.png"))); 246 towerButton.setBounds(new Rectangle(90, 128, 35, 32)); 255 towerButton.setBounds(new Rectangle(90, 128, 34, 32)); 256 towerButton.setBorder(BorderFactory.createLineBorder(Color.magenta, 2)); 247 257 towerButton.setToolTipText(Messages.getString("TowerTip")); 248 258 } … … 254 264 whiteButton = new JRadioButton(new ImageIcon(getClass() 255 265 .getResource("/images/WhiteButton.png"))); 256 whiteButton.setBounds(new Rectangle(0, 16, 54, 16)); 266 whiteButton.setBounds(new Rectangle(0, 16, 52, 16)); 267 whiteButton.setBorder(BorderFactory.createLineBorder(Color.magenta, 2)); 257 268 whiteButton.setToolTipText(tr("White")); 258 269 } … … 264 275 redButton = new JRadioButton(new ImageIcon(getClass().getResource( 265 276 "/images/RedButton.png"))); 266 redButton.setBounds(new Rectangle(0, 32, 54, 16)); 277 redButton.setBounds(new Rectangle(0, 32, 52, 16)); 278 redButton.setBorder(BorderFactory.createLineBorder(Color.magenta, 2)); 267 279 redButton.setToolTipText(tr("Red")); 268 280 } … … 274 286 orangeButton = new JRadioButton(new ImageIcon(getClass() 275 287 .getResource("/images/OrangeButton.png"))); 276 orangeButton.setBounds(new Rectangle(0, 48, 54, 16)); 288 orangeButton.setBounds(new Rectangle(0, 48, 52, 16)); 289 orangeButton.setBorder(BorderFactory.createLineBorder(Color.magenta, 2)); 277 290 orangeButton.setToolTipText(tr("Orange")); 278 291 } … … 284 297 amberButton = new JRadioButton(new ImageIcon(getClass() 285 298 .getResource("/images/AmberButton.png"))); 286 amberButton.setBounds(new Rectangle(0, 64, 54, 16)); 299 amberButton.setBounds(new Rectangle(0, 64, 52, 16)); 300 amberButton.setBorder(BorderFactory.createLineBorder(Color.magenta, 2)); 287 301 amberButton.setToolTipText(tr("Amber")); 288 302 } … … 294 308 yellowButton = new JRadioButton(new ImageIcon(getClass() 295 309 .getResource("/images/YellowButton.png"))); 296 yellowButton.setBounds(new Rectangle(0, 80, 54, 16)); 310 yellowButton.setBounds(new Rectangle(0, 80, 52, 16)); 311 yellowButton.setBorder(BorderFactory.createLineBorder(Color.magenta, 2)); 297 312 yellowButton.setToolTipText(tr("Yellow")); 298 313 } … … 304 319 greenButton = new JRadioButton(new ImageIcon(getClass() 305 320 .getResource("/images/GreenButton.png"))); 306 greenButton.setBounds(new Rectangle(0, 96, 54, 16)); 321 greenButton.setBounds(new Rectangle(0, 96, 52, 16)); 322 greenButton.setBorder(BorderFactory.createLineBorder(Color.magenta, 2)); 307 323 greenButton.setToolTipText(tr("Green")); 308 324 } … … 314 330 blueButton = new JRadioButton(new ImageIcon(getClass().getResource( 315 331 "/images/BlueButton.png"))); 316 blueButton.setBounds(new Rectangle(0, 112, 54, 16)); 332 blueButton.setBounds(new Rectangle(0, 112, 52, 16)); 333 blueButton.setBorder(BorderFactory.createLineBorder(Color.magenta, 2)); 317 334 blueButton.setToolTipText(tr("Blue")); 318 335 } … … 324 341 violetButton = new JRadioButton(new ImageIcon(getClass() 325 342 .getResource("/images/VioletButton.png"))); 326 violetButton.setBounds(new Rectangle(0, 128, 54, 16)); 343 violetButton.setBounds(new Rectangle(0, 128, 52, 16)); 344 violetButton.setBorder(BorderFactory.createLineBorder(Color.magenta, 2)); 327 345 violetButton.setToolTipText(tr("Violet")); 328 346 } … … 334 352 blackButton = new JRadioButton(new ImageIcon(getClass() 335 353 .getResource("/images/BlackButton.png"))); 336 blackButton.setBounds(new Rectangle(0, 144, 54, 16)); 354 blackButton.setBounds(new Rectangle(0, 144, 52, 16)); 355 blackButton.setBorder(BorderFactory.createLineBorder(Color.magenta, 2)); 337 356 blackButton.setToolTipText(tr("Black")); 338 357 } -
applications/editors/josm/plugins/smed/plugs/oseam/src/oseam/panels/PanelStbd.java
r24695 r24724 58 58 ActionListener alRegion = new ActionListener() { 59 59 public void actionPerformed(java.awt.event.ActionEvent e) { 60 if (regionAButton.isSelected()) { 61 regionAButton.setEnabled(false); 62 } else { 63 regionAButton.setEnabled(true); 64 } 65 if (regionBButton.isSelected()) { 66 regionBButton.setEnabled(false); 67 } else { 68 regionBButton.setEnabled(true); 69 } 60 regionAButton.setBorderPainted(regionAButton.isSelected()); 61 regionBButton.setBorderPainted(regionBButton.isSelected()); 70 62 } 71 63 }; … … 83 75 ActionListener alShape = new ActionListener() { 84 76 public void actionPerformed(java.awt.event.ActionEvent e) { 85 pillarButton.set Enabled(!pillarButton.isSelected());86 sparButton.set Enabled(!sparButton.isSelected());87 coneButton.set Enabled(!coneButton.isSelected());88 floatButton.set Enabled(!floatButton.isSelected());89 beaconButton.set Enabled(!beaconButton.isSelected());90 towerButton.set Enabled(!towerButton.isSelected());91 perchButton.set Enabled(!perchButton.isSelected());77 pillarButton.setBorderPainted(pillarButton.isSelected()); 78 sparButton.setBorderPainted(sparButton.isSelected()); 79 coneButton.setBorderPainted(coneButton.isSelected()); 80 floatButton.setBorderPainted(floatButton.isSelected()); 81 beaconButton.setBorderPainted(beaconButton.isSelected()); 82 towerButton.setBorderPainted(towerButton.isSelected()); 83 perchButton.setBorderPainted(perchButton.isSelected()); 92 84 } 93 85 }; … … 105 97 regionAButton = new JRadioButton(new ImageIcon(getClass() 106 98 .getResource("/images/RegionAButton.png"))); 107 regionAButton.setBounds(new Rectangle(0, 2, 35, 30)); 99 regionAButton.setBounds(new Rectangle(0, 2, 34, 30)); 100 regionAButton.setBorder(BorderFactory.createLineBorder(Color.magenta, 2)); 108 101 regionAButton.setToolTipText(Messages.getString("RegionATip")); 109 102 } … … 115 108 regionBButton = new JRadioButton(new ImageIcon(getClass() 116 109 .getResource("/images/RegionBButton.png"))); 117 regionBButton.setBounds(new Rectangle(0, 32, 35, 30)); 110 regionBButton.setBounds(new Rectangle(0, 32, 34, 30)); 111 regionBButton.setBorder(BorderFactory.createLineBorder(Color.magenta, 2)); 118 112 regionBButton.setToolTipText(Messages.getString("RegionBTip")); 119 113 } … … 125 119 pillarButton = new JRadioButton(new ImageIcon(getClass() 126 120 .getResource("/images/PillarButton.png"))); 127 pillarButton.setBounds(new Rectangle(0, 64, 35, 32)); 121 pillarButton.setBounds(new Rectangle(0, 64, 34, 32)); 122 pillarButton.setBorder(BorderFactory.createLineBorder(Color.magenta, 2)); 128 123 pillarButton.setToolTipText(Messages.getString("PillarTip")); 129 124 } … … 135 130 sparButton = new JRadioButton(new ImageIcon(getClass().getResource( 136 131 "/images/SparButton.png"))); 137 sparButton.setBounds(new Rectangle(0, 96, 35, 32)); 132 sparButton.setBounds(new Rectangle(0, 96, 34, 32)); 133 sparButton.setBorder(BorderFactory.createLineBorder(Color.magenta, 2)); 138 134 sparButton.setToolTipText(Messages.getString("SparTip")); 139 135 } … … 145 141 coneButton = new JRadioButton(new ImageIcon(getClass().getResource( 146 142 "/images/ConeButton.png"))); 147 coneButton.setBounds(new Rectangle(0, 128, 35, 32)); 143 coneButton.setBounds(new Rectangle(0, 128, 34, 32)); 144 coneButton.setBorder(BorderFactory.createLineBorder(Color.magenta, 2)); 148 145 coneButton.setToolTipText(Messages.getString("ConeTip")); 149 146 } … … 155 152 floatButton = new JRadioButton(new ImageIcon(getClass() 156 153 .getResource("/images/FloatButton.png"))); 157 floatButton.setBounds(new Rectangle(35, 0, 35, 32)); 154 floatButton.setBounds(new Rectangle(35, 0, 34, 32)); 155 floatButton.setBorder(BorderFactory.createLineBorder(Color.magenta, 2)); 158 156 floatButton.setToolTipText(Messages.getString("FloatTip")); 159 157 } … … 165 163 beaconButton = new JRadioButton(new ImageIcon(getClass() 166 164 .getResource("/images/BeaconButton.png"))); 167 beaconButton.setBounds(new Rectangle(35, 32, 35, 32)); 165 beaconButton.setBounds(new Rectangle(35, 32, 34, 32)); 166 beaconButton.setBorder(BorderFactory.createLineBorder(Color.magenta, 2)); 168 167 beaconButton.setToolTipText(Messages.getString("BeaconTip")); 169 168 } … … 175 174 towerButton = new JRadioButton(new ImageIcon(getClass() 176 175 .getResource("/images/TowerButton.png"))); 177 towerButton.setBounds(new Rectangle(35, 64, 35, 32)); 176 towerButton.setBounds(new Rectangle(35, 64, 34, 32)); 177 towerButton.setBorder(BorderFactory.createLineBorder(Color.magenta, 2)); 178 178 towerButton.setToolTipText(Messages.getString("TowerTip")); 179 179 } … … 185 185 perchButton = new JRadioButton(new ImageIcon(getClass() 186 186 .getResource("/images/PerchSButton.png"))); 187 perchButton.setBounds(new Rectangle(35, 96, 35, 32)); 187 perchButton.setBounds(new Rectangle(35, 96, 34, 32)); 188 perchButton.setBorder(BorderFactory.createLineBorder(Color.magenta, 2)); 188 189 perchButton.setToolTipText(Messages.getString("PerchTip")); 189 190 }
Note:
See TracChangeset
for help on using the changeset viewer.