| Rev | Line | |
|---|
| [1] | 1 | package org.openstreetmap.josm.gui;
|
|---|
| 2 |
|
|---|
| 3 | import javax.swing.Action;
|
|---|
| 4 | import javax.swing.JToggleButton;
|
|---|
| 5 |
|
|---|
| 6 | /**
|
|---|
| 7 | * Just a toggle button, with smaller border and icon only to display in
|
|---|
| 8 | * MapFrame toolbars.
|
|---|
| 9 | *
|
|---|
| 10 | * @author imi
|
|---|
| 11 | */
|
|---|
| 12 | public class IconToggleButton extends JToggleButton {
|
|---|
| 13 |
|
|---|
| 14 | /**
|
|---|
| 15 | * Construct the toggle button with the given action.
|
|---|
| 16 | */
|
|---|
| 17 | public IconToggleButton(Action action) {
|
|---|
| 18 | super(action);
|
|---|
| 19 | setText(null);
|
|---|
| 20 | }
|
|---|
| 21 | }
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.