g.setColor(graph.getBackground());
g.setColor(getBackground());
    public void paint(Graphics g)    {      g.setColor(graph.getBackground());      //g.setXORMode(graph.getBackground());      if(preview)      {        Dimension d = getSize();        g.setColor(java.awt.Color.red);        g.drawRect(1, 1, d.width - 3, d.height - 3);        g.drawRect(2, 2, d.width - 5, d.height - 5);      }      else        ICON.paintIcon(graph, g, 0, 0);    }