United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-4464714 Windows: Frames cannot be shown initially maximized
JDK-4464714 : Windows: Frames cannot be shown initially maximized

Details
Type:
Bug
Submit Date:
2001-05-31
Status:
Resolved
Updated Date:
2002-09-20
Project Name:
JDK
Resolved Date:
2002-09-20
Component:
client-libs
OS:
windows_nt,windows_2000
Sub-Component:
java.awt
CPU:
x86
Priority:
P4
Resolution:
Fixed
Affected Versions:
1.4.0
Fixed Versions:
1.4.2 (mantis)

Related Reports
Duplicate:

Sub Tasks

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
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
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
CONVERTED DATA

BugTraq+ Release Management Values

COMMIT TO FIX:
mantis

FIXED IN:
mantis

INTEGRATED IN:
mantis
mantis-b03


                                     
2004-06-14



Hardware and Software, Engineered to Work Together