33 |
* @author Grigor Iliev |
* @author Grigor Iliev |
34 |
*/ |
*/ |
35 |
public class ToolbarButton extends JButton { |
public class ToolbarButton extends JButton { |
36 |
|
/** Creates a button. */ |
37 |
|
ToolbarButton() { |
38 |
|
initToolbarButton(); |
39 |
|
} |
40 |
|
|
41 |
/** Creates a button where properties are taken from the Action supplied. */ |
/** Creates a button where properties are taken from the Action supplied. */ |
42 |
ToolbarButton(javax.swing.Action a) { |
ToolbarButton(javax.swing.Action a) { |
43 |
super(a); |
super(a); |
44 |
|
|
45 |
|
initToolbarButton(); |
46 |
|
} |
47 |
|
|
48 |
|
private void |
49 |
|
initToolbarButton() { |
50 |
setBorderPainted(false); |
setBorderPainted(false); |
51 |
setContentAreaFilled(false); |
setContentAreaFilled(false); |
52 |
|
|