Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4390019

REGRESSION: Alt-F4 keybinding no longer shuts down java application on Windows

XMLWordPrintable

    • 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


            son Oleg Sukhodolsky (Inactive)
            mdavidsosunw Mark Davidson (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: