-
Bug
-
Resolution: Duplicate
-
P5
-
None
-
1.4.0
-
x86
-
windows_nt
###@###.### 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();
}
}
}
- duplicates
-
JDK-4633691 unable using arrow keys to navigate between buttons with JOptionPane
-
- Closed
-