Ignore:
Timestamp:
2010-12-08T20:06:07+01:00 (14 years ago)
Author:
malcolmh
Message:

new buttons

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/smed/plugs/oseam/src/oseam/panels/PanelSpec.java

    r24633 r24658  
    153153                if (pillarButton == null) {
    154154                        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));
    157157                }
    158158                return pillarButton;
     
    162162                if (sparButton == null) {
    163163                        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));
    166166                }
    167167                return sparButton;
     
    171171                if (canButton == null) {
    172172                        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));
    175175                }
    176176                return canButton;
     
    180180                if (coneButton == null) {
    181181                        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));
    184184                }
    185185                return coneButton;
     
    188188        private JRadioButton getSphereButton() {
    189189                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));
    193193                }
    194194                return sphereButton;
     
    197197        private JRadioButton getBarrelButton() {
    198198                if (barrelButton == null) {
    199                         barrelButton = new JRadioButton(new ImageIcon(getClass().getResource(
    200                                         Messages.getString("BarrelButton"))));
    201                         barrelButton.setBounds(new Rectangle(195, 0, 90, 32));
     199                        barrelButton = new JRadioButton(new ImageIcon(getClass()
     200                                        .getResource("/images/BarrelButton.png")));
     201                        barrelButton.setBounds(new Rectangle(140, 0, 35, 32));
    202202                }
    203203                return barrelButton;
     
    206206        private JRadioButton getSuperButton() {
    207207                if (superButton == null) {
    208                         superButton = new JRadioButton(new ImageIcon(getClass().getResource(
    209                                         Messages.getString("SuperButton"))));
    210                         superButton.setBounds(new Rectangle(195, 32, 90, 32));
     208                        superButton = new JRadioButton(new ImageIcon(getClass()
     209                                        .getResource("/images/SuperButton.png")));
     210                        superButton.setBounds(new Rectangle(140, 32, 35, 32));
    211211                }
    212212                return superButton;
     
    216216                if (floatButton == null) {
    217217                        floatButton = new JRadioButton(new ImageIcon(getClass()
    218                                         .getResource(Messages.getString("FloatButton"))));
    219                         floatButton.setBounds(new Rectangle(195, 64, 90, 32));
     218                                        .getResource("/images/FloatButton.png")));
     219                        floatButton.setBounds(new Rectangle(140, 64, 35, 32));
    220220                }
    221221                return floatButton;
     
    225225                if (beaconButton == null) {
    226226                        beaconButton = new JRadioButton(new ImageIcon(getClass()
    227                                         .getResource(Messages.getString("BeaconButton"))));
    228                         beaconButton.setBounds(new Rectangle(195, 96, 90, 32));
     227                                        .getResource("/images/BeaconButton.png")));
     228                        beaconButton.setBounds(new Rectangle(140, 96, 35, 32));
    229229                }
    230230                return beaconButton;
     
    234234                if (towerButton == null) {
    235235                        towerButton = new JRadioButton(new ImageIcon(getClass()
    236                                         .getResource(Messages.getString("TowerButton"))));
    237                         towerButton.setBounds(new Rectangle(195, 128, 90, 32));
     236                                        .getResource("/images/TowerButton.png")));
     237                        towerButton.setBounds(new Rectangle(140, 128, 35, 32));
    238238                }
    239239                return towerButton;
     
    242242        private JRadioButton getWhiteButton() {
    243243                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")));
    245246                        whiteButton.setBounds(new Rectangle(4, 32, 33, 32));
    246247                        whiteButton.setToolTipText(tr("White"));
     
    251252        private JRadioButton getRedButton() {
    252253                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")));
    254256                        redButton.setBounds(new Rectangle(37, 32, 33, 32));
    255257                        redButton.setToolTipText(tr("Red"));
     
    260262        private JRadioButton getOrangeButton() {
    261263                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")));
    263266                        orangeButton.setBounds(new Rectangle(70, 32, 33, 32));
    264267                        orangeButton.setToolTipText(tr("Orange"));
     
    269272        private JRadioButton getAmberButton() {
    270273                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")));
    272276                        amberButton.setBounds(new Rectangle(4, 64, 33, 32));
    273277                        amberButton.setToolTipText(tr("Amber"));
     
    278282        private JRadioButton getYellowButton() {
    279283                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")));
    281286                        yellowButton.setBounds(new Rectangle(37, 64, 33, 32));
    282287                        yellowButton.setToolTipText(tr("Yellow"));
     
    287292        private JRadioButton getGreenButton() {
    288293                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")));
    290296                        greenButton.setBounds(new Rectangle(70, 64, 33, 32));
    291297                        greenButton.setToolTipText(tr("Green"));
     
    296302        private JRadioButton getBlueButton() {
    297303                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")));
    299306                        blueButton.setBounds(new Rectangle(4, 96, 33, 32));
    300307                        blueButton.setToolTipText(tr("Blue"));
     
    305312        private JRadioButton getVioletButton() {
    306313                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")));
    308316                        violetButton.setBounds(new Rectangle(37, 96, 33, 32));
    309317                        violetButton.setToolTipText(tr("Violet"));
     
    314322        private JRadioButton getBlackButton() {
    315323                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")));
    317326                        blackButton.setBounds(new Rectangle(70, 96, 33, 32));
    318327                        blackButton.setToolTipText(tr("Black"));
Note: See TracChangeset for help on using the changeset viewer.