JDK-6464548 : Reopen 6383434: Frame.setMaximumSize() doesn't work
  • Type: Enhancement
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version:
    e6u21,1.4.2,5.0,6,7,8,8u221,9,10,11,12,13,14,15,16 e6u21,1.4.2,5.0,6,7,8,8u221,9,10,11,12,13,14,15,16
  • Priority: P4
  • Status: Open
  • Resolution: Unresolved
  • OS:
    generic,linux,windows_xp,windows_2008,windows_vista,windows_7 generic,linux,windows_xp,windows_2008,windows_vista,windows_7
  • CPU: generic,x86
  • Submitted: 2006-08-28
  • Updated: 2021-02-04
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.
Other
tbdUnresolved
Related Reports
Relates :  
Relates :  
Description
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.

Comments
Test build: JDK 11.0.2b01 (64bit) & JDK11.0.2b02(64bit) Platform :Oel7.4-uek-x64 & Ubuntu18.04-x64 ute tool: tonga-4.0.2-rc2.jar The following case failed as the same issue RULE "AWT_TopLevels/TopLevelMiscellaneous/Manual/MaximumSizeTest" ExitCode 1
02-11-2018

jdk7u113b01(32bit)/win7 x86 RULE "AWT_TopLevels/TopLevelMiscellaneous/Manual/MaximumSizeTest" ExitCode 1 failed the same issue
18-07-2016

RULE AWT_TopLevels/TopLevelMiscellaneous/Manual/MaximumSizeTest ExitCode 1
20-03-2015

sles11-sp2-x86 6u51b02(32bit) It has same issue.
10-04-2013

rhel6.1-x64 8b73(64bit) It has same issue.
22-01-2013

win2008-r2-sp1-x64 8b67(64bit) It has same issue.
12-12-2012

winvista-x64 6u38b05(64bit) It has same issue.
27-11-2012