-
Bug
-
Resolution: Not an Issue
-
P4
-
None
-
1.2.2
-
x86
-
linux
Name: kaC94536 Date: 01/31/2000
Code below should show a frame with part of the green button visible
inside. But, unfortunately, there is no button in the window.
The same behavior observed when other components (Label, Panel) are
used instead of button.
---------------------------- test.java -------------------------------
import java.awt.*;
class test {
static int x = -100000;
public static void main(String args[]) {
Frame f = new Frame();
f.setSize(300, 300);
Button b = new Button("test");
b.setBackground(Color.green);
f.add(b);
f.getLayout().removeLayoutComponent(b); // exclude LayoutManager influence
b.setBounds(x, 30, 270-x, 240);
f.show();
}
}
======================================================================
======================================================================