JDK-4524033 : Cannot maximize JInternalFrame using Ctrl+F5 when >1 internal frames present
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 1.3.1_01
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: generic
  • CPU: generic
  • Submitted: 2001-11-07
  • Updated: 2001-12-10
  • Resolved: 2001-12-10
Related Reports
Duplicate :  
Description
The customer is using jdk1.3.0_02 but I have found the problem exists in later versions as well, viz, jdk1.3.1, jdk1.3.1_01, jdk1.4beta, jdk1.4beta2 and jdk1.4beta3.

This problem exists on both the Solaris and Windows platforms.

The customer says,
- CTL-F5: NOT working. I appended a small test app. When all of
the internal frames are minimized, they cannot be opened again (try e.g.
with 2-3 internal frames).

***** TestCase *****

import java.awt.*;
import java.awt.event.*;
import javax.swing.*;

public class InnerFrames extends JFrame {

    private JMenuBar jmb = new JMenuBar();
    private JMenu file = new JMenu("File");
    private JMenuItem fileNew = new JMenuItem("New");

    private JDesktopPane jdp = new JDesktopPane();

    public InnerFrames() {
        this.getContentPane().add(jdp);

        file.add(fileNew);
        jmb.add(file);
        this.setJMenuBar(jmb);

        fileNew.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent ae) {
                addFrame();
            }
        });
    }

    private void addFrame() {
        System.out.println("Adding a new inner frame");
        JInternalFrame ifr = new JInternalFrame("test", true, true, true, true);
        ifr.getContentPane().setLayout(new BorderLayout());
        ifr.getContentPane().add(new JTree());
        ifr.pack();
        ifr.setVisible(true);

        jdp.add(ifr);
    }

    public static void main(String args[]) {
        try {
            UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
        } catch (Exception ex) {}

        InnerFrames i = new InnerFrames();
        i.setSize(400,400);
        i.setVisible(true);
    }

} 

Comments
PUBLIC COMMENTS Cannot maximize JInternalFrame using Ctrl+F5 when there are more than one internal frames present.
10-06-2004

EVALUATION This seemes to be a focus related problem. More investigation is needed to find out why this occurs. A number of the keyboard combinations don't work in certain situations. ###@###.### 2001-11-12 This is a duplicate of 4432398. ###@###.### 2001-12-10
12-11-2001