Constructor Color(int rgb)
Member of: java.awt.Color
[api documentation ] [ main menu]

Examples of how the element is used (one line per example):
[add your own example]

1 addSerie(name, column, new Color(Integer.parseInt(color,16)));
2 setcolor( new Color( Color.HSBtoRGB( hue, saturation, brightness ) ) );
3 g.setColor(new Color(color));
4 setBackground(northPanel, new Color(back.getRGB()));
5 setForeground( new Color( 0xe0e0ff ) );
6 g.setColor(new Color((int) (Math.random() * 0xFFFFFFL)));
7 Color mColor = new Color(mRGB);
8 setBackground(new Color(Integer.parseInt(getParameter("bgcolor"),16)));
9 list.setBackground(new Color(SystemColor.window.getRGB()));
10 g2.setColor(new Color(~bg.getRGB()));
11 if(s!=null) c.setBackground(new Color(Integer.parseInt(s)));
12 Color labelColor = new Color(0x666699);
13 dapy.setGridLineChartStroke(new ChartStroke(new BasicStroke(0.25f), new Color(0x808080)));
14 colorButton.setBackground( new Color(Integer.parseInt(foreColor)) );
15 getContentPane().setBackground(new Color(12632256));
16 Color color = color_int == null ? Color.blue : new Color(color_int.intValue());
17 : new Color(rgb));
18 = new ColorTileIcon ( new Color ( argb ), tileSize );
19 Color bkgc=new Color((new Integer(e.getAttribute("backgroundColor"))).intValue());
Java and J2SE are trademarks or registered trademarks of Sun Microsystems, Inc. in the United States and other Countries.