#200 GUIUtilities: scrap the use of JOptionPane.showConfirmDialog

open
nobody
None
5
2008-02-06
2008-02-06
Alan Ezust
No

JOptionPane.showConfirmDialog is a horrible dialog.
It should not be used anywhere in jedit core anymore.

The GUIUtilites.confirm method (and listConfirm methods) should create a better yes/no dialog that also responds to "Y" and "N" shortcuts, and if the user selects SPACE to go to the next button, then RETURN should activate that other button.

Discussion

  • Robert Schwenn
    Robert Schwenn
    2008-02-07

    Logged In: YES
    user_id=1486645
    Originator: NO

    Please let the shortcuts be configurable via propeties like mnemonics are i.e. for the search dialog.

     
  • Unfortunately, a recently implemented feature "Open New File with Mode"
    is also suffered from JOptionPane.showInputDialog().
    https://sourceforge.net/support/tracker.php?aid=1797477
    > Date: 2008-09-28 04:11
    > Sender: ezust
    > I like it, but I think it needs one more tweak: if I double-click on one of
    > the modes in the list, it shouldn't need me to also click on "ok".