-
Type:
Bug
-
Resolution: Not an Issue
-
Priority:
P4
-
None
-
Affects Version/s: 1.2.2
-
Component/s: client-libs
-
x86
-
linux
Name: kaC94536 Date: 01/27/2000
The code below should show window with blue background.
But background of the window is not blue.
------------------------------ test.java -----------------------------
import java.awt.*;
class test extends Frame {
static int x = -2000000;
public static void main(String args[]) {
test f = new test();
f.setSize(200, 200);
f.show();
}
public void paint(Graphics g) {
g.setColor(Color.blue);
g.fillRect(x,0, getBounds().width-x, getBounds().height);
}
}
======================================================================