changeset 7445:ac89a5d71466

8000326: Focus unable to traverse in the menubar Reviewed-by: alexsch, malenkov
author alexsch
date Wed, 06 Feb 2013 18:25:06 +0400
parents 171443b1eb3b
children 6e17465f4a1a
files src/share/classes/javax/swing/JMenuBar.java
diffstat 1 files changed, 8 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/classes/javax/swing/JMenuBar.java	Mon Feb 04 16:01:06 2013 +0000
+++ b/src/share/classes/javax/swing/JMenuBar.java	Wed Feb 06 18:25:06 2013 +0400
@@ -70,7 +70,14 @@
  * of all JavaBeans<sup><font size="-2">TM</font></sup>
  * has been added to the <code>java.beans</code> package.
  * Please see {@link java.beans.XMLEncoder}.
- *
+ * <p>
+ * <strong>Warning:</strong>
+ * By default, pressing the Tab key does not transfer focus from a <code>
+ * JMenuBar</code> which is added to a container together with other Swing
+ * components, because the <code>focusTraversalKeysEnabled</code> property
+ * of <code>JMenuBar</code> is set to <code>false</code>. To resolve this,
+ * you should call the <code>JMenuBar.setFocusTraversalKeysEnabled(true)</code>
+ * method.
  * @beaninfo
  *   attribute: isContainer true
  * description: A container for holding and displaying menus.