01: package vicazh.hyperpool;
02:
03: import java.awt.*;
04: import javax.swing.*;
05:
06: /**
07: * The label
08: *
09: * @author Victor Zhigunov
10: * @version 0.4.0
11: */
12: public class ILabel extends JLabel {
13:
14: /**
15: * @param text
16: * The text to be displayed by the label.
17: */
18: public ILabel(String text) {
19: super (text);
20: }
21:
22: public void paint(Graphics g) {
23: ((Graphics2D) g).setRenderingHint(
24: RenderingHints.KEY_ANTIALIASING,
25: RenderingHints.VALUE_ANTIALIAS_ON);
26: super.paint(g);
27: }
28:
29: }
|