Details
-
Type:
Bug
-
Status: Resolved
-
Priority:
P3
-
Resolution: Fixed
-
Affects Version/s: 1.3.0, 1.4.0
-
Fix Version/s: 1.4.0
-
Component/s: client-libs
-
Subcomponent:
-
Resolved In Build:beta2
-
CPU:x86
-
OS:generic, windows_nt
Description
Regression introduced between b34 and b36. To reproduce, load any application like SwingSet2. Use the standard windows key combination ALT-F4 to shut down the application.
On b34 the application will be shut down. On b36 it will not.
>>>> SimpleUI.java
import javax.swing.*;
public class SimpleUI extends JFrame {
public SimpleUI() {
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
getContentPane().add(new JLabel("Windows: Press ALT-F4 to close"));
pack();
setVisible(true);
}
public static void main(String[] args) {
(new SimpleUI());
}
}
<<<< SimpleUI.java
On b34 the application will be shut down. On b36 it will not.
>>>> SimpleUI.java
import javax.swing.*;
public class SimpleUI extends JFrame {
public SimpleUI() {
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
getContentPane().add(new JLabel("Windows: Press ALT-F4 to close"));
pack();
setVisible(true);
}
public static void main(String[] args) {
(new SimpleUI());
}
}
<<<< SimpleUI.java
Attachments
Issue Links
- duplicates
-
JDK-4392256 Applications dont exit if ALT+F4 or (mouse click the 'x' button on Frame window)
-
- Closed
-
- relates to
-
JDK-5104989 KeyPostProcessor is not getting called when the frame is non-focusable
-
- Closed
-