1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
package org.openslx.dozmod.gui.control;
import javax.swing.Icon;
import javax.swing.JLabel;
public class QLabel extends JLabel {
private static final long serialVersionUID = -2454459023556745689L;
public QLabel(String text, Icon icon, int horizontalAlignment) {
super(text, icon, horizontalAlignment);
putClientProperty("html.disable", Boolean.TRUE);
putClientProperty("html", null);
}
public QLabel(String text, int horizontalAlignment) {
this(text, null, horizontalAlignment);
}
public QLabel(String text) {
this(text, null, LEADING);
}
public QLabel(Icon image, int horizontalAlignment) {
this(null, image, horizontalAlignment);
}
public QLabel(Icon image) {
this(null, image, CENTER);
}
public QLabel() {
this("", null, LEADING);
}
}
|