Changeset 1247 in josm for trunk


Ignore:
Timestamp:
2009-01-11T16:59:01+01:00 (15 years ago)
Author:
ulfl
Message:

use small icons also in the LayerListDialog

Location:
trunk/src/org/openstreetmap/josm/gui
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/SideButton.java

    r1246 r1247  
    1919        doStyle();
    2020        setText(null);
     21    }
     22
     23    public SideButton(Action action, String imagename)
     24    {
     25        this(action);
     26        setIcon(makeIcon(imagename));
    2127    }
    2228
  • trunk/src/org/openstreetmap/josm/gui/dialogs/LayerListDialog.java

    r1246 r1247  
    245245        };
    246246
    247         upButton = new SideButton("up", "LayerList", tr("Move the selected layer one row up."), upDown);
     247        upButton = new SideButton("Up", "up", "LayerList", tr("Move the selected layer one row up."), upDown);
     248        upButton.setText(null);
    248249        buttonPanel.add(upButton);
    249250
    250         downButton = new SideButton("down", "LayerList", tr("Move the selected layer one row down."), upDown);
     251        downButton = new SideButton("Down", "down", "LayerList", tr("Move the selected layer one row down."), upDown);
     252        downButton.setText(null);
    251253        buttonPanel.add(downButton);
    252254
    253         buttonPanel.add(new SideButton(new ShowHideLayerAction(null)));
    254         buttonPanel.add(new SideButton(deleteAction));
     255        buttonPanel.add(new SideButton(new ShowHideLayerAction(null), "showhide"));
     256        buttonPanel.add(new SideButton(deleteAction, "delete"));
    255257
    256258        mergeButton = new SideButton("mergedown", "LayerList", tr("Merge the layer directly below into the selected layer."),
Note: See TracChangeset for help on using the changeset viewer.