1 |
alfonx |
486 |
package skrueger.swing; |
2 |
|
|
|
3 |
|
|
import javax.swing.Action; |
4 |
|
|
import javax.swing.BorderFactory; |
5 |
|
|
import javax.swing.JToggleButton; |
6 |
|
|
|
7 |
|
|
public class SmallToggleButton extends JToggleButton{ |
8 |
|
|
|
9 |
|
|
public SmallToggleButton() { |
10 |
|
|
setBorder(BorderFactory.createEtchedBorder()); |
11 |
|
|
} |
12 |
|
|
|
13 |
|
|
public SmallToggleButton(Action action, String tooltip) { |
14 |
|
|
this (action); |
15 |
|
|
if (tooltip != null) |
16 |
|
|
setToolTipText(tooltip); |
17 |
|
|
} |
18 |
|
|
|
19 |
|
|
public SmallToggleButton(Action action) { |
20 |
|
|
super(action); |
21 |
|
|
setBorder(BorderFactory.createEtchedBorder()); |
22 |
|
|
} |
23 |
|
|
|
24 |
|
|
} |