The CR 6383434 was closed as duplicate by mistake.
Look at the sample below:
import java.awt.*;
public class Test extends Frame {
public Test() {
setMinimumSize(new Dimension(400, 400));
setMaximumSize(new Dimension(400, 400));
setSize(400, 400);
setVisible(true);
}
public static void main(String[] args) {
new Test();
}
}
When I run the code above I cannot decrease the size of the Frame less than [400,400]. But at the same time I *can* increase the size of the Frame. It seems we have some inconsistency: setMinimumSize does work whereas setMaximumSize doesn't work.
The test is running on jdk6 b69.