|
Revision 1, 421 bytes
(checked in by imi, 5 years ago)
|
|
wiki 19:37, 27. Sep 2005
|
| Line | |
|---|
| 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 | } |
|---|