Changeset 24658 in osm for applications/editors/josm/plugins/smed/plugs/oseam/src/oseam/panels/PanelSpec.java
- Timestamp:
- 2010-12-08T20:06:07+01:00 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/smed/plugs/oseam/src/oseam/panels/PanelSpec.java
r24633 r24658 153 153 if (pillarButton == null) { 154 154 pillarButton = new JRadioButton(new ImageIcon(getClass() 155 .getResource( Messages.getString("PillarButton"))));156 pillarButton.setBounds(new Rectangle(105, 0, 90, 32));155 .getResource("/images/PillarButton.png"))); 156 pillarButton.setBounds(new Rectangle(105, 0, 35, 32)); 157 157 } 158 158 return pillarButton; … … 162 162 if (sparButton == null) { 163 163 sparButton = new JRadioButton(new ImageIcon(getClass().getResource( 164 Messages.getString("SparButton"))));165 sparButton.setBounds(new Rectangle(105, 32, 90, 32));164 "/images/SparButton.png"))); 165 sparButton.setBounds(new Rectangle(105, 32, 35, 32)); 166 166 } 167 167 return sparButton; … … 171 171 if (canButton == null) { 172 172 canButton = new JRadioButton(new ImageIcon(getClass().getResource( 173 Messages.getString("CanButton"))));174 canButton.setBounds(new Rectangle(105, 64, 90, 32));173 "/images/CanButton.png"))); 174 canButton.setBounds(new Rectangle(105, 64, 35, 32)); 175 175 } 176 176 return canButton; … … 180 180 if (coneButton == null) { 181 181 coneButton = new JRadioButton(new ImageIcon(getClass().getResource( 182 Messages.getString("ConeButton"))));183 coneButton.setBounds(new Rectangle(105, 96, 90, 32));182 "/images/ConeButton.png"))); 183 coneButton.setBounds(new Rectangle(105, 96, 35, 32)); 184 184 } 185 185 return coneButton; … … 188 188 private JRadioButton getSphereButton() { 189 189 if (sphereButton == null) { 190 sphereButton = new JRadioButton(new ImageIcon(getClass() .getResource(191 Messages.getString("SphereButton"))));192 sphereButton.setBounds(new Rectangle(105, 128, 90, 32));190 sphereButton = new JRadioButton(new ImageIcon(getClass() 191 .getResource("/images/SphereButton.png"))); 192 sphereButton.setBounds(new Rectangle(105, 128, 35, 32)); 193 193 } 194 194 return sphereButton; … … 197 197 private JRadioButton getBarrelButton() { 198 198 if (barrelButton == null) { 199 barrelButton = new JRadioButton(new ImageIcon(getClass() .getResource(200 Messages.getString("BarrelButton"))));201 barrelButton.setBounds(new Rectangle(1 95, 0, 90, 32));199 barrelButton = new JRadioButton(new ImageIcon(getClass() 200 .getResource("/images/BarrelButton.png"))); 201 barrelButton.setBounds(new Rectangle(140, 0, 35, 32)); 202 202 } 203 203 return barrelButton; … … 206 206 private JRadioButton getSuperButton() { 207 207 if (superButton == null) { 208 superButton = new JRadioButton(new ImageIcon(getClass() .getResource(209 Messages.getString("SuperButton"))));210 superButton.setBounds(new Rectangle(1 95, 32, 90, 32));208 superButton = new JRadioButton(new ImageIcon(getClass() 209 .getResource("/images/SuperButton.png"))); 210 superButton.setBounds(new Rectangle(140, 32, 35, 32)); 211 211 } 212 212 return superButton; … … 216 216 if (floatButton == null) { 217 217 floatButton = new JRadioButton(new ImageIcon(getClass() 218 .getResource( Messages.getString("FloatButton"))));219 floatButton.setBounds(new Rectangle(1 95, 64, 90, 32));218 .getResource("/images/FloatButton.png"))); 219 floatButton.setBounds(new Rectangle(140, 64, 35, 32)); 220 220 } 221 221 return floatButton; … … 225 225 if (beaconButton == null) { 226 226 beaconButton = new JRadioButton(new ImageIcon(getClass() 227 .getResource( Messages.getString("BeaconButton"))));228 beaconButton.setBounds(new Rectangle(1 95, 96, 90, 32));227 .getResource("/images/BeaconButton.png"))); 228 beaconButton.setBounds(new Rectangle(140, 96, 35, 32)); 229 229 } 230 230 return beaconButton; … … 234 234 if (towerButton == null) { 235 235 towerButton = new JRadioButton(new ImageIcon(getClass() 236 .getResource( Messages.getString("TowerButton"))));237 towerButton.setBounds(new Rectangle(1 95, 128, 90, 32));236 .getResource("/images/TowerButton.png"))); 237 towerButton.setBounds(new Rectangle(140, 128, 35, 32)); 238 238 } 239 239 return towerButton; … … 242 242 private JRadioButton getWhiteButton() { 243 243 if (whiteButton == null) { 244 whiteButton = new JRadioButton(new ImageIcon(getClass().getResource("/images/WhiteButton.png"))); 244 whiteButton = new JRadioButton(new ImageIcon(getClass() 245 .getResource("/images/WhiteButton.png"))); 245 246 whiteButton.setBounds(new Rectangle(4, 32, 33, 32)); 246 247 whiteButton.setToolTipText(tr("White")); … … 251 252 private JRadioButton getRedButton() { 252 253 if (redButton == null) { 253 redButton = new JRadioButton(new ImageIcon(getClass().getResource("/images/RedButton.png"))); 254 redButton = new JRadioButton(new ImageIcon(getClass().getResource( 255 "/images/RedButton.png"))); 254 256 redButton.setBounds(new Rectangle(37, 32, 33, 32)); 255 257 redButton.setToolTipText(tr("Red")); … … 260 262 private JRadioButton getOrangeButton() { 261 263 if (orangeButton == null) { 262 orangeButton = new JRadioButton(new ImageIcon(getClass().getResource("/images/OrangeButton.png"))); 264 orangeButton = new JRadioButton(new ImageIcon(getClass() 265 .getResource("/images/OrangeButton.png"))); 263 266 orangeButton.setBounds(new Rectangle(70, 32, 33, 32)); 264 267 orangeButton.setToolTipText(tr("Orange")); … … 269 272 private JRadioButton getAmberButton() { 270 273 if (amberButton == null) { 271 amberButton = new JRadioButton(new ImageIcon(getClass().getResource("/images/AmberButton.png"))); 274 amberButton = new JRadioButton(new ImageIcon(getClass() 275 .getResource("/images/AmberButton.png"))); 272 276 amberButton.setBounds(new Rectangle(4, 64, 33, 32)); 273 277 amberButton.setToolTipText(tr("Amber")); … … 278 282 private JRadioButton getYellowButton() { 279 283 if (yellowButton == null) { 280 yellowButton = new JRadioButton(new ImageIcon(getClass().getResource("/images/YellowButton.png"))); 284 yellowButton = new JRadioButton(new ImageIcon(getClass() 285 .getResource("/images/YellowButton.png"))); 281 286 yellowButton.setBounds(new Rectangle(37, 64, 33, 32)); 282 287 yellowButton.setToolTipText(tr("Yellow")); … … 287 292 private JRadioButton getGreenButton() { 288 293 if (greenButton == null) { 289 greenButton = new JRadioButton(new ImageIcon(getClass().getResource("/images/GreenButton.png"))); 294 greenButton = new JRadioButton(new ImageIcon(getClass() 295 .getResource("/images/GreenButton.png"))); 290 296 greenButton.setBounds(new Rectangle(70, 64, 33, 32)); 291 297 greenButton.setToolTipText(tr("Green")); … … 296 302 private JRadioButton getBlueButton() { 297 303 if (blueButton == null) { 298 blueButton = new JRadioButton(new ImageIcon(getClass().getResource("/images/BlueButton.png"))); 304 blueButton = new JRadioButton(new ImageIcon(getClass().getResource( 305 "/images/BlueButton.png"))); 299 306 blueButton.setBounds(new Rectangle(4, 96, 33, 32)); 300 307 blueButton.setToolTipText(tr("Blue")); … … 305 312 private JRadioButton getVioletButton() { 306 313 if (violetButton == null) { 307 violetButton = new JRadioButton(new ImageIcon(getClass().getResource("/images/VioletButton.png"))); 314 violetButton = new JRadioButton(new ImageIcon(getClass() 315 .getResource("/images/VioletButton.png"))); 308 316 violetButton.setBounds(new Rectangle(37, 96, 33, 32)); 309 317 violetButton.setToolTipText(tr("Violet")); … … 314 322 private JRadioButton getBlackButton() { 315 323 if (blackButton == null) { 316 blackButton = new JRadioButton(new ImageIcon(getClass().getResource("/images/BlackButton.png"))); 324 blackButton = new JRadioButton(new ImageIcon(getClass() 325 .getResource("/images/BlackButton.png"))); 317 326 blackButton.setBounds(new Rectangle(70, 96, 33, 32)); 318 327 blackButton.setToolTipText(tr("Black"));
Note:
See TracChangeset
for help on using the changeset viewer.