92 |
private transient int iconTextGap = 4; |
private transient int iconTextGap = 4; |
93 |
|
|
94 |
/** |
/** |
95 |
* Creates a new horizontally and vertically centered JLabel object with no |
* Creates a new vertically centered, horizontally on the leading edge |
96 |
* text and no icon. |
* JLabel object with text and no icon. |
97 |
*/ |
*/ |
98 |
public JLabel() |
public JLabel() |
99 |
{ |
{ |
100 |
this(null, null, CENTER); |
this(null, null, LEADING); |
101 |
} |
} |
102 |
|
|
103 |
/** |
/** |
104 |
* Creates a new horizontally and vertically centered JLabel object with no |
* Creates a new vertically centered, horizontally on the leading edge |
105 |
* text and the given icon. |
* JLabel object with no text and the given icon. |
106 |
* |
* |
107 |
* @param image The icon to use with the label. |
* @param image The icon to use with the label. |
108 |
*/ |
*/ |
109 |
public JLabel(Icon image) |
public JLabel(Icon image) |
110 |
{ |
{ |
111 |
this(null, image, CENTER); |
this(null, image, LEADING); |
112 |
} |
} |
113 |
|
|
114 |
/** |
/** |
125 |
} |
} |
126 |
|
|
127 |
/** |
/** |
128 |
* Creates a new horizontally and vertically centered JLabel object with no |
* Creates a new horizontally leading and vertically centered JLabel |
129 |
* icon and the given text. |
* object with no icon and the given text. |
130 |
* |
* |
131 |
* @param text The text to use with the label. |
* @param text The text to use with the label. |
132 |
*/ |
*/ |
133 |
public JLabel(String text) |
public JLabel(String text) |
134 |
{ |
{ |
135 |
this(text, null, CENTER); |
this(text, null, LEADING); |
136 |
} |
} |
137 |
|
|
138 |
/** |
/** |