-
Bug
-
Resolution: Not an Issue
-
P1
-
None
-
1.4.0
-
x86
-
linux
Name: icR10030 Date: 10/17/2001
The method setExtendedState(int state) from class Frame does not work as expected.
The states MAXIMIZED_BOTH and MAXIMIZED_HORIZ do not work.
JDK : jdk1.4.0-b83, jre1.4.0-b83
JCK : JCK1.4-b11
Platform[s] : RedHat Linux 7.1
switch/Mode : -client -Xmixed, plugin for Netscape 4.76
JCK test owner : http://javaweb.eng/jck/usr/owners.jto
Failing Test : api/java_awt/interactive/FrameStateTests.html#FrameStateTests
Test source location:
=====================
/net/jdk/export/disk8/local.java/jck1.4/JCK-runtime-14/tests/api/java_awt/interactive/FrameStateTests.java
jtr file location:
==================
/net/jtgb4u4c.eng/export/sail15/results/merlin/b83/jck14/linux/redhat7.1_gnome_client_linux-13/workDir/api-interactive/java_awt/interactive/FrameStateTests_FrameStateTests.jtr
How to reproduce:
=================
1. Compile the following java class.
2. Run the class FrameStateTests
// -------- FrameStateTests.java ---------------
import java.awt.Toolkit;
import java.awt.Frame;
public class FrameStateTests extends Frame {
public static void main(String[] argv) {
Toolkit toolkit = Toolkit.getDefaultToolkit();
System.out.println("minSupported = " + toolkit.isFrameStateSupported(Frame.NORMAL));
System.out.println("maxBothSupported = " + toolkit.isFrameStateSupported(Frame.MAXIMIZED_BOTH));
System.out.println("vertMaxSupported = " + toolkit.isFrameStateSupported(Frame.MAXIMIZED_VERT));
System.out.println("horizMaxSupported = " + toolkit.isFrameStateSupported(Frame.MAXIMIZED_HORIZ));
System.out.println("normalSupported = " + toolkit.isFrameStateSupported(Frame.ICONIFIED));
FrameStateTests test = new FrameStateTests();
test.setSize(300, 200);
test.setLocation(20, 20);
test.setVisible(true);
if ( argv.length==0 ) {
System.out.println("Usage: java FrameStateTests [ NORMAL | ICONIFIED | MAXIMIZED_BOTH | MAXIMIZED_VERT | MAXIMIZED_HORIZ ]");
System.exit(0);
}
else if ( argv[0].equals("NORMAL") )
test.setExtendedState(test.NORMAL);
else if ( argv[0].equals("ICONIFIED") )
test.setExtendedState(test.ICONIFIED);
else if ( argv[0].equals("MAXIMIZED_BOTH"))
test.setExtendedState(test.MAXIMIZED_BOTH);
else if ( argv[0].equals("MAXIMIZED_VERT") )
test.setExtendedState(test.MAXIMIZED_VERT);
else if ( argv[0].equals("MAXIMIZED_HORIZ"))
test.setExtendedState(test.MAXIMIZED_HORIZ);
}
}
// -------- end FrameStateTests.java ---------
Test output:
============
minSupported = true
maxBothSupported = true
vertMaxSupported = true
horizMaxSupported = true
normalSupported = true
Specific Machine Info:
======================
Hostname: linux-13
Os: Linux Redhat 7.1
======================================================================
- relates to
-
JDK-4457313 java.awt.Frame.setExtendedState(Frame.MAXIMIZED_BOTH) only MAXIMIZED_VERTICAL
-
- Resolved
-