JDK-4464714 : Windows: Frames cannot be shown initially maximized
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 1.4.0
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • OS: windows_nt,windows_2000
  • CPU: x86
  • Submitted: 2001-05-31
  • Updated: 2002-09-20
  • Resolved: 2002-09-20
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
1.4.2 mantisFixed
Related Reports
Duplicate :  
Description

Name: bsC130419			Date: 05/31/2001


java version "1.4.0-beta"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.0-beta-b65)
Java HotSpot(TM) Client VM (build 1.4.0-beta-b65, mixed mode)

Frames can be programmatically maximized with
setExtendedState() but only after having being shown,
otherwise they are shown in normal state, as the sample
code shows.
The workaround is to first show the frame, then maximize it.

//--------------------------------------------
import javax.swing.*;

public class Maxim extends JFrame
{
 public static void main(String args[])
 {
  new Maxim();
 }

 public Maxim()
 {
  setDefaultCloseOperation(EXIT_ON_CLOSE);
  setExtendedState(MAXIMIZED_BOTH);
  show();
 }
}
//--------------------------------------------
(Review ID: 125293) 
======================================================================

Comments
CONVERTED DATA BugTraq+ Release Management Values COMMIT TO FIX: mantis FIXED IN: mantis INTEGRATED IN: mantis mantis-b03
2004-06-14

WORK AROUND Name: bsC130419 Date: 05/31/2001 //-------------------------------------------- import javax.swing.*; public class Maxim extends JFrame { public static void main(String args[]) { new Maxim(); } public Maxim() { setDefaultCloseOperation(EXIT_ON_CLOSE); show(); setExtendedState(MAXIMIZED_BOTH); } } //-------------------------------------------- ======================================================================
2004-06-11

EVALUATION Windows part is resolved (see evaluation and suggested fix for 4464710), but on X11 this is still impossible. ###@###.### 2002-09-03
2002-09-03