-
Bug
-
Resolution: Fixed
-
P4
-
1.1.6, 1.2.0, 1.2.1, 1.2.2
-
b32
-
generic, x86
-
generic, windows_98, windows_nt
Name: mf23781 Date: 07/20/98
*Symptoms:
Usually, double-click on system menu icon on a window will close the window.
But JInternalFrame does not do that. I have looked the sample code come with swing - SwingSet. The same problem exists there.
======================================================================
Name: krT82822 Date: 04/10/99
As a windows user, I commonly double-click on the icon in the upper left-hand corner to close a window. For example, try it on any standard JFrame object. However, this doesn't work in internal frames, at least when using Windows PLAF. Though you may not see this as necessary ("why doesn't he just click the close box?"), it IS standard.
======================================================================
Name: krT82822 Date: 08/09/99
With the following Java program, double clicking on the
JInternalFrame icon (at the top-left of the frame) should close
the frame (ie. the same response as clicking on the close box),
to be consistent with how Windows 95/98/NT handles this.
Instead, the frame remains open.
import javax.swing.*;
public class Test
{
public static void main(String[] args)
{
try {
UIManager.setLookAndFeel("javax.swing.plaf.metal.MetalLookAndFeel");
JFrame frame = new JFrame();
JDesktopPane desktop = new JDesktopPane();
frame.getContentPane().add("Center", desktop);
frame.setBounds(0,0,400,400);
frame.setVisible(true);
JInternalFrame messageLog = new JInternalFrame("internal frame", true, true, true, true);
messageLog.setBounds( 10, 10, 200, 200);
desktop.add(messageLog, JLayeredPane.DEFAULT_LAYER);
messageLog.setVisible(true);
} catch (Exception ex) {
}
}
}
(Review ID: 93642)
======================================================================
- duplicates
-
JDK-4235810 Double Click on WindowsLnF JInternalFrame's icon should close
-
- Closed
-