1
16package org.tp23.antinstaller.renderer.swing;
17
18import java.awt.Dimension;
19
20import javax.swing.Action;
21import javax.swing.Icon;
22import javax.swing.JButton;
23
24
25
31public class AIButton extends JButton {
32
33 public AIButton() {
34 super();
35 }
36
37 public AIButton(String text) {
38 super(text);
39 }
40
41 public AIButton(Action a) {
42 super(a);
43 }
44
45 public AIButton(Icon icon) {
46 super(icon);
47 }
48
49 public AIButton(String text, Icon icon) {
50 super(text, icon);
51 }
52
53 private Dimension prefSize = new Dimension(SizeConstants.BUTTON_WIDTH,
54 SizeConstants.FIELD_HEIGHT);
55
56 public Dimension getMinimumSize() {
57 return prefSize;
58 }
59
60 public Dimension getPreferredSize() {
61 return prefSize;
62 }
63 public void setOverflow(Dimension prefSize) {
64 this.prefSize = prefSize;
65 }
66
67 public Dimension getMaximumSize() {
68 return prefSize;
69 }
70
71}