1) run HelloAlert
2) click 'Dialog' (a dialog with a single 'OK' button is displayed)
3) BUG: ESC and the close (x) do not close the dialog (and should)
From memory, an Alert with a single button should be closed by ESC or the close (x) and should return the value of the button. This is debatable and it might be that I am remembering what was decided. Need to try out a few native dialogs with one button to gather data on what native apps do.
2) click 'Dialog' (a dialog with a single 'OK' button is displayed)
3) BUG: ESC and the close (x) do not close the dialog (and should)
From memory, an Alert with a single button should be closed by ESC or the close (x) and should return the value of the button. This is debatable and it might be that I am remembering what was decided. Need to try out a few native dialogs with one button to gather data on what native apps do.
- duplicates
-
JDK-8094146 [Dialog] Cannot use ESC or close button to dismiss an Alert with single OK button
- Closed