-
Bug
-
Resolution: Duplicate
-
P3
-
7
-
x86
-
linux
the steps to reproduce the problem
1. run the testcase (the source code are below)
just a frame and a button inside the frame
2. resize the frame
3. the size of the button will not be adjusted to the size of the frame
================= source code =====================
import java.awt.*;
public class test{
public static final void main(String args[]) {
Frame fr = new Frame();
fr.setBounds(0,0,200,200);
Button button = new Button("button");
button.setBackground(Color.RED);
fr.add(button);
fr.setVisible(true);
}
}
====================================================
platform: ubuntu, metacity window manager
jdk: latest jdk7 build
the problem is reproducible since jdk7 b25
1. run the testcase (the source code are below)
just a frame and a button inside the frame
2. resize the frame
3. the size of the button will not be adjusted to the size of the frame
================= source code =====================
import java.awt.*;
public class test{
public static final void main(String args[]) {
Frame fr = new Frame();
fr.setBounds(0,0,200,200);
Button button = new Button("button");
button.setBackground(Color.RED);
fr.add(button);
fr.setVisible(true);
}
}
====================================================
platform: ubuntu, metacity window manager
jdk: latest jdk7 build
the problem is reproducible since jdk7 b25
- duplicates
-
JDK-6682046 Mixing code does not always recalculate shapes correctly when resizing components
- Resolved
- relates to
-
JDK-6637796 setBounds doesn't enlarge Component
- Closed