JDK-6689303 : Resizing doesn't change the size of the content
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 7
  • Priority: P3
  • Status: Closed
  • Resolution: Duplicate
  • OS: linux
  • CPU: x86
  • Submitted: 2008-04-16
  • Updated: 2011-01-19
  • Resolved: 2008-05-07
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 7
7Resolved
Related Reports
Duplicate :  
Relates :  
Description
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

Comments
EVALUATION The root cause of the problem is described at 6682046. I'm closing this CR as a duplicate of 6682046.
07-05-2008

EVALUATION It seems the fix for 6637796 should be extended for the cases like described in this CR.
18-04-2008

EVALUATION the problem is a regression of 6637796 (setBounds doesn't enlarge Component). if I roll back the fix then the problem disappers.
16-04-2008