01: package com.memoire.vainstall.xui;
02:
03: import java.awt.*;
04: import javax.swing.*;
05: import javax.swing.border.*;
06:
07: public class XuiList extends JList {
08: public XuiList(Object[] _data) {
09: super (_data);
10: setSelectionBackground(new Color(64, 64, 96));
11: setSelectionForeground(Color.white);
12: setBackground(new Color(255, 255, 224));
13: setForeground(Color.black);
14: setBorder(null);
15: setOpaque(true);
16: }
17:
18: public void paint(Graphics _g) {
19: ((Graphics2D) _g).setRenderingHint(
20: RenderingHints.KEY_ANTIALIASING,
21: RenderingHints.VALUE_ANTIALIAS_ON);
22: super.paint(_g);
23: }
24: }
|