changeset 3030:286b14273037

6899877: JComponent.add/removeNotify() should mention that they are not supposed to be called directly Reviewed-by: alexp
author rupashka
date Sat, 13 Nov 2010 13:04:47 +0300
parents 74f844c02cdd
children d385b33c0db0
files src/share/classes/javax/swing/JComponent.java
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/classes/javax/swing/JComponent.java	Fri Nov 12 10:49:52 2010 -0800
+++ b/src/share/classes/javax/swing/JComponent.java	Sat Nov 13 13:04:47 2010 +0300
@@ -4734,6 +4734,8 @@
      * Notifies this component that it now has a parent component.
      * When this method is invoked, the chain of parent components is
      * set up with <code>KeyboardAction</code> event listeners.
+     * This method is called by the toolkit internally and should
+     * not be called directly by programs.
      *
      * @see #registerKeyboardAction
      */
@@ -4750,6 +4752,8 @@
      * Notifies this component that it no longer has a parent component.
      * When this method is invoked, any <code>KeyboardAction</code>s
      * set up in the the chain of parent components are removed.
+     * This method is called by the toolkit internally and should
+     * not be called directly by programs.
      *
      * @see #registerKeyboardAction
      */