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