1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.xulux.guilayer.swing.extensions;
17
18 import javax.swing.Action;
19 import javax.swing.Icon;
20 import javax.swing.JButton;
21
22
23
24
25
26
27 public class XuluxJButton extends JButton {
28
29
30
31
32 public XuluxJButton() {
33 super();
34
35 }
36
37
38
39
40 public XuluxJButton(Icon icon) {
41 super(icon);
42
43 }
44
45
46
47
48 public XuluxJButton(String text) {
49 super(text);
50
51 }
52
53
54
55
56 public XuluxJButton(Action a) {
57 super(a);
58
59 }
60
61
62
63
64
65 public XuluxJButton(String text, Icon icon) {
66 super(text, icon);
67
68 }
69
70 protected boolean focusTraversable = true;
71
72 public void setFocusTraversable(boolean b) {
73 this.focusTraversable = b;
74 }
75
76
77
78
79 public boolean isFocusTraversable() {
80 return focusTraversable;
81 }
82 }