Ignore:
Timestamp:
2005-09-30T01:34:07+02:00 (19 years ago)
Author:
imi
Message:

improved selection

File:
1 edited

Legend:

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

    r1 r4  
    22
    33import javax.swing.Action;
     4import javax.swing.JComponent;
    45import javax.swing.JToggleButton;
    56
     
    1516         * Construct the toggle button with the given action.
    1617         */
    17         public IconToggleButton(Action action) {
     18        public IconToggleButton(JComponent acceleratorReceiver, Action action) {
    1819                super(action);
    1920                setText(null);
     21                Object o = action.getValue(Action.LONG_DESCRIPTION);
     22                if (o != null)
     23                        setToolTipText(o.toString());
    2024        }
    2125}
Note: See TracChangeset for help on using the changeset viewer.