JDK-4110799 : JInternalFrame icon position unchanged w/ resize
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 1.2.0
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • OS: windows_nt
  • CPU: x86
  • Submitted: 1998-02-09
  • Updated: 1998-03-19
  • Resolved: 1998-03-19
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.2.0 swing1.0fcsFixed
Description

Name: rm29839			Date: 02/09/98


Two internal frames are created in a JFrame.
Each one of them is iconified and then
uniconified.  If the JFrame is then resized, the
internal frames, when iconified, are positioned
at the previous location, and not at the bottom
of the JFrame.
Here is the source code:
-----------------------------------------------
import com.sun.java.swing.*;
import java.awt.*;
import java.awt.event.*;

public class Test1 {
	public static void main( String[] args )
	{
		JFrame frame = new JFrame("Jframe");
		frame.setSize(500, 300);

		frame.addWindowListener( new WindowAdapter() {
			public void windowClosing( WindowEvent e ) {
				System.exit(0);
			}});

		JDesktopPane dp = new JDesktopPane();
		dp.setOpaque(true);
		frame.getContentPane().add(dp);

		Rectangle r = new Rectangle(10, 10, 150, 150);
		JInternalFrame iframe = createInternalFrame( "First", r, Color.red );
		dp.add(iframe, JLayeredPane.PALETTE_LAYER);

		r = new Rectangle(200, 100, 150, 150);
		iframe = createInternalFrame( "Second", r, Color.yellow );
		dp.add(iframe, JLayeredPane.PALETTE_LAYER);

		frame.setVisible(true);
	}

	public static JInternalFrame createInternalFrame(
		String name, Rectangle bounds, Color c )
	{
		JInternalFrame iframe = new JInternalFrame(name, true, true, true, true);
		iframe.setBackground( c );
		iframe.setBounds(bounds);
		return iframe;
	}
}
(Review ID: 24776)
======================================================================

Comments
CONVERTED DATA BugTraq+ Release Management Values COMMIT TO FIX: generic FIXED IN: swing1.0fcs INTEGRATED IN: swing1.0fcs
14-06-2004

EVALUATION The JInternalFrame positioning code was fixed for 1.0.1. Thank you for providing such a good test case. thomas.ball@Eng 1998-03-18
18-03-1998