g.setColor(Color.RED);
g.setColor(isEnabled() ? Color.RED : Color.DARK_GRAY);
        public WidthSelector()        {            setLayout(new BorderLayout());            tf = HackModule.createSizedJTextField(3);            tf.getDocument().addDocumentListener(this);            add(HackModule.getLabeledComponent("Width: ", tf),                BorderLayout.NORTH);            line = new JPanel()            {                public void paint(Graphics g)                {                    g.setColor(Color.GRAY);                    g.fillRect(0, 0, getWidth(), getHeight());                    g.setColor(Color.RED);                    int pos = (int) (getSelectedChar().getWidth() * drawingArea                        .getZoom());                    g.drawLine(pos, 0, pos, getHeight());                }            };            line.addMouseListener(this);            line.addMouseMotionListener(this);            line.setPreferredSize(new Dimension(161, 20));            line.setCursor(Cursor.getPredefinedCursor(Cursor.E_RESIZE_CURSOR));            this.add(line, BorderLayout.CENTER);        }