JDK-6464551 : XAWT: Frame.setMaximizedBounds restricts resizing
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 6u23,7,8,9,10,11,12,13,14,15
  • Priority: P3
  • Status: Open
  • Resolution: Unresolved
  • OS: generic,linux,linux_redhat_5.0
  • CPU: generic,x86,arm
  • Submitted: 2006-08-28
  • Updated: 2020-10-28
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 :  
Description
Frame.setMaximizedBounds restricts resizing of Frame to specified dimensions.

import java.awt.*;
import java.awt.event.*;

---Test.java---
public class Test {

    public static void main(String[] args) {
        Frame f = new Frame("test frame");
        f.setMaximizedBounds(new Rectangle(0, 0, 400, 400));
        f.setBounds(100, 100, 200, 200);
        f.setVisible(true);
    }
}
---Test.java---

1. Compile and run Test.java
2. Try to enlarge the frame. If Frame's maximum size is restricted with (400, 400), the bug is reproduced.

The bug is reproducible always with JDK6 b95 on several WMs, namely gnome & KDE

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/MaximizedBoundsTest" ExitCode 1
02-11-2018

Test build: JDK 10.0.1b07 (64bit) Platform :oel7.1-uek-x64 ute tool: tonga-4.0.2-rc2.jar The case failed as the same issue: RULE "AWT_TopLevels/TopLevelMiscellaneous/Manual/MaximizedBoundsTest" ExitCode 1
08-03-2018

Reproducible on b07 7u71 sflt ejdk ubuntu 11.10 arm Adding "arm" CPU
16-09-2014

AWT_TopLevels/TopLevelMiscellaneous/Manual/MaximizedBoundsTest
25-10-2013

These are all approved for deferral to JDK 9 so you can update the FixVersion to state JDK 9. Kind regards, Mathias
29-08-2013

These are all approved for deferral to JDK 9 so you can update the FixVersion to state JDK 9. Kind regards, Mathias
29-08-2013

These are all approved for deferral to JDK 9 so you can update the FixVersion to state JDK 9. Kind regards, Mathias
29-08-2013

Converted "8-client-defer-candidate" label to "8-defer-request" by SQE' OK.
15-08-2013

*This is anti-deferral criteria list*: - P2 -------------- Engineering's Criteria ------------------------------------- - tck-red labeled - conformance labeled - P3 regressions reported/labeled against jdk8 - findbugs, parfait, eht labeled bugs - CAP <1 year reported - netbeans <1 year reported Victor ----------------- SQE's OK --------------------------------- Yes, we are ok with that thanks, Mikhail
15-08-2013

8-defer-request: This is the issue from 7 GA when it was approved to defer that time. Requesting to defer again because there are no customer escalations on this issue.
14-06-2013

oel5.8-x64 8b72(32bit) After clicking the maximize button, the size of frame looks like still 200,200, refer to MaximizedBoundsTest.jpg. link to issue: INTJDK-6972982.
11-01-2013

EVALUATION Need to remove unnecessary restricting of maximum size while setting maximized bounds
30-08-2006