changeset 20106:5d5f2c72f262

7156658: JTextComponent.setFocusAccelerator() spec does not state that focus accelerator is L&F dependent Reviewed-by: alexsch
author malenkov
date Mon, 02 Sep 2013 14:06:24 +0400
parents f698ce625852
children 18e644411f0b
files jdk/src/share/classes/javax/swing/text/JTextComponent.java
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/jdk/src/share/classes/javax/swing/text/JTextComponent.java	Fri Aug 30 13:28:15 2013 +0400
+++ b/jdk/src/share/classes/javax/swing/text/JTextComponent.java	Mon Sep 02 14:06:24 2013 +0400
@@ -1562,8 +1562,10 @@
     /**
      * Sets the key accelerator that will cause the receiving text
      * component to get the focus.  The accelerator will be the
-     * key combination of the <em>alt</em> key and the character
-     * given (converted to upper case).  By default, there is no focus
+     * key combination of the platform-specific modifier key and
+     * the character given (converted to upper case).  For example,
+     * the ALT key is used as a modifier on Windows and the CTRL+ALT
+     * combination is used on Mac.  By default, there is no focus
      * accelerator key.  Any previous key accelerator setting will be
      * superseded.  A '\0' key setting will be registered, and has the
      * effect of turning off the focus accelerator.  When the new key