changeset 8092:f2f614e31522

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 7151f08eeadf
children 6ffa2680e139
files src/share/classes/javax/swing/text/JTextComponent.java
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/classes/javax/swing/text/JTextComponent.java	Fri Aug 30 13:28:15 2013 +0400
+++ b/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