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