-
Bug
-
Resolution: Fixed
-
P3
-
1.3.0, 1.4.0
-
beta2
-
x86
-
generic, windows_nt
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
- 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