blob: 436f63eed14a277fe0cc554e4954dca5736136b3 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
package NET.worlds.console;
import java.awt.Dimension;
import java.awt.Label;
class UnpaddedLabel extends Label {
private static final long serialVersionUID = -5960236197854637006L;
UnpaddedLabel(String text, int align) {
super(text, align);
}
@Override
public Dimension preferredSize() {
return new Dimension(1, 1);
}
@Override
public Dimension minimumSize() {
return this.preferredSize();
}
}
|