8000326: Focus unable to traverse in the menubar
authoralexsch
Wed, 06 Feb 2013 18:25:06 +0400
changeset 15633 3b73e7d1d7e5
parent 15508 6b53b3a93372
child 15634 ff71ed981a76
8000326: Focus unable to traverse in the menubar Reviewed-by: alexsch, malenkov
jdk/src/share/classes/javax/swing/JMenuBar.java
--- a/jdk/src/share/classes/javax/swing/JMenuBar.java	Mon Feb 04 16:01:06 2013 +0000
+++ b/jdk/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.