JDK-4640009 : JOptionPane does not support keyboard navigation
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 1.4.0
  • Priority: P5
  • Status: Closed
  • Resolution: Duplicate
  • OS: windows_nt
  • CPU: x86
  • Submitted: 2002-02-20
  • Updated: 2002-03-04
  • Resolved: 2002-03-04
Related Reports
Duplicate :  
Description
###@###.### 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();
			}
		}
	}

Comments
EVALUATION This bug was already submitted by the same submitter. Closing as a duplicate of 4633691. ###@###.### 2002-03-04
04-03-2002