-
Bug
-
Resolution: Fixed
-
P3
-
0.9
-
1.0prebeta1
-
sparc
-
solaris_2.4
-
Not verified
From: ###@###.### (Keith Bornhorst (developer))
> Q: The following does not work as I would think...
> public void paint()
> {
> Graphics g = new Graphics( this );
>
> g.setForeground( Color.lightGray );
> g.paint3DRect( 70, 240, 510, 41, true, true );
> g.paint3DRect( 20, 290, 510, 41, true, true );
>
> g.dispose();
> }
>
> - The background color of the Window was set to Color.white in the
> constructor. I would think that the foreground color would would
> be set to lightGray and stay that way until changed, but the first
> 3DRect is painted lightGray while the second is black ???
> Q: The following does not work as I would think...
> public void paint()
> {
> Graphics g = new Graphics( this );
>
> g.setForeground( Color.lightGray );
> g.paint3DRect( 70, 240, 510, 41, true, true );
> g.paint3DRect( 20, 290, 510, 41, true, true );
>
> g.dispose();
> }
>
> - The background color of the Window was set to Color.white in the
> constructor. I would think that the foreground color would would
> be set to lightGray and stay that way until changed, but the first
> 3DRect is painted lightGray while the second is black ???