JOptionPane does not support keyboard navigation

XMLWordPrintable

    • Type: Bug
    • Resolution: Duplicate
    • Priority: P5
    • None
    • Affects Version/s: 1.4.0
    • Component/s: client-libs


      ###@###.### 2002-02-19

      In native Windows, when interacting with a MessageBox(...), one can use the
      arrow keys to navigate between buttons (e.g. <- is the same as Shift-Tab and
      -> the same as Tab). This is apparently not currently supported by
      JOptionPane. Arguably, JOptionPane should mimic MessageBox.

      Test program:
      ---------------
      import javax.swing.*;
      public class JOPArrows
      {
      public static void main(String[] args)
      {
      try {
      UIManager.setLookAndFeel(
      "com.sun.java.swing.plaf." +"windows.WindowsLookAndFeel");
      JOptionPane.showConfirmDialog(null,
      "Left and right arrows should "
      +"change button focus.");
      }
      catch (Exception e) {
      e.printStackTrace();
      }
      }
      }

            Assignee:
            Shannon Hickey (Inactive)
            Reporter:
            Ting-Yun Ingrid Yao (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: