Changeset 8201 in josm for trunk/src


Ignore:
Timestamp:
2015-04-17T20:24:40+02:00 (10 years ago)
Author:
simon04
Message:

fix #10632 - Add expand icon and separator in edit toolbar

File:
1 edited

Legend:

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

    r8071 r8201  
    2929import javax.swing.BoxLayout;
    3030import javax.swing.ButtonGroup;
     31import javax.swing.ImageIcon;
    3132import javax.swing.JButton;
    3233import javax.swing.JCheckBoxMenuItem;
     
    7778import org.openstreetmap.josm.tools.Destroyable;
    7879import org.openstreetmap.josm.tools.GBC;
     80import org.openstreetmap.josm.tools.ImageProvider;
    7981import org.openstreetmap.josm.tools.Shortcut;
    8082
     
    541543        public ListAllButtonsAction(Collection<? extends HideableButton> buttons) {
    542544            this.buttons = buttons;
    543             putValue(NAME, ">>");
    544545        }
    545546
    546547        public void setButton(JButton button) {
    547548            this.button =  button;
     549            final ImageIcon icon = ImageProvider.get("audio-fwd");
     550            putValue(SMALL_ICON, icon);
     551            button.setPreferredSize(new Dimension(icon.getIconWidth(), icon.getIconHeight() + 64));
    548552        }
    549553
Note: See TracChangeset for help on using the changeset viewer.