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

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

    Details

    • 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


        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: