setColor (new Color (rgb[0], rgb[1], rgb[2])); setBackground (new Color (rgb[3], rgb[4], rgb[5])); setPaint (getColor()); setFont (new Font("SansSerif", Font.PLAIN, 12)); setTransform (new AffineTransform ()); setStroke (new BasicStroke ()); setRenderingHints (getDefaultHints());
if (g.fg.getAlpha() != -1) fg = new Color (g.fg.getRed (), g.fg.getGreen (), g.fg.getBlue (), g.fg.getAlpha ()); else fg = new Color (g.fg.getRGB ());
  GdkGraphics2D (GtkComponentPeer component)  {    this.component = component;    int rgb[] = initState (component);    setColor (new Color (rgb[0], rgb[1], rgb[2]));    setBackground (new Color (rgb[3], rgb[4], rgb[5]));    setPaint (getColor());    setFont (new Font("SansSerif", Font.PLAIN, 12));    setTransform (new AffineTransform ());    setStroke (new BasicStroke ());    setRenderingHints (getDefaultHints());    stateStack = new Stack ();  }