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);
}
}