Constructor Color(int r, int g, int b, int a)
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 this(bounds, new Color(0, 0, 0, 0));
2 g.setColor(new Color(0,0,0,150));
3 m_paint = new Color (c.getRed(), c.getGreen(), c.getBlue(), alpha);
4 setBackground(new Color(220, 220, 220, 255));
5 setBackground(new Color(220, 220, 220, 255));
6 gp = new GradientPaint(x, 0, new Color(0,0,0,100), x+4, 0, new Color(0,0,0,0), false);
7 ColorUIResource retValue = new ColorUIResource(new Color(r, g, b, a));
8 g2d.setColor(new Color(255,255,255,190));
9 Color lightShadow = new Color(darkShadow.getRed(),
10 graphics.setColor(new Color(0,0,255, 80));
11 g.setColor(new Color(255, 0, 0, 30)); // faded red
12 arcstart, y, new Color(255,255,255,0));
Java and J2SE are trademarks or registered trademarks of Sun Microsystems, Inc. in the United States and other Countries.