JDK-4189622 : Maximized JInternalFrames can't be size-restored after resizing parent Frame.
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 1.2.0
  • Priority: P2
  • Status: Closed
  • Resolution: Duplicate
  • OS: solaris_2.6
  • CPU: x86,sparc
  • Submitted: 1998-11-12
  • Updated: 1998-11-20
  • Resolved: 1998-11-20
Related Reports
Duplicate :  
Description

A script can be used to bring the test up without hassling with the JavaTest
harness.

#!/bin/ksh
#JDK=/net/ultrajaguar.eng/export/jdk12x/`/bin/uname -p`/jdk1.2FCS_O
#JDK=/net/mulder.eng/export/mulder3/jdk12x/`/bin/uname -p`/jdk1.2FCS_M
JDK=/net/mulder.eng/export/mulder3/jdk12x/`/bin/uname -p`/jdk1.2FCS_R
JCK=/net/ultralynx.eng/export/kumarsv/jck/JCK-12a-O
PATH=${JDK}/bin:/usr/dt/bin:/usr/bin:/bin:/usr/openwin/bin
LD_LIBRARY_PATH=/usr/dt/lib:/usr/openwin/lib
CLASSPATH=.:${JCK}/classes:${JCK}/javatest.jar
export PATH
export LD_LIBRARY_PATH
export CLASSPATH
if [ ! -f JInternalFrameTests.html ]; then
  cp ${JCK}/tests/api/javax_swing/interactive/JInternalFrameTests.html .
fi
if [ ! -f JInternalFrameTests.java ]; then
  cp ${JCK}/tests/api/javax_swing/interactive/JInternalFrameTests.java .
fi
java -Djava.compiler=none javasoft.sqe.tests.api.javax.swing.interactive.JInternalFrame.JInternalFrameTests -TestCaseID JInternalFrameTest0005

Once the test window is up
(1) Click on the "Maximize" tool on the JInternalFrame.
(2) Use the mouse to grab the right edge of the enclosing Frame and resize rightwards.

The top of the JInternalFrame will disappear.  The JInternalFrame cannot be moved
downwards and cannot be restored in size.

The bug was not present in build M.  It was introduced in either build N or build O.

allan.jacobs@Eng 1998-11-12

Comments
EVALUATION The bug occurs in Build M, and I have found it as far back as build I. Before Build I, we run into the renaming of the swing path to javax: Exception in thread "main" java.lang.NoClassDefFoundError: javax/swing/JFrame Resizing the AWT Frame would not cause the JInternalFrames to resize incorrectly. This must be a Swing bug. Reassigning to classes_swing. mike.bronson@eng 1998-11-16 This has been fixed, it's a duplicate of 4176733. The BasicFrameUIs ComponentListener was resizing the wrong component (should be the JInternalFrame itself).
16-11-1998