From dc30fe701c8936d8d80385e21dc4a27dc2ad2ec9 Mon Sep 17 00:00:00 2001 From: rupashka Date: Sat, 13 Nov 2010 13:04:47 +0300 Subject: [PATCH] 6899877: JComponent.add/removeNotify() should mention that they are not supposed to be called directly Reviewed-by: alexp --- src/share/classes/javax/swing/JComponent.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/share/classes/javax/swing/JComponent.java b/src/share/classes/javax/swing/JComponent.java index 6f017402e..78fddfcb1 100644 --- a/src/share/classes/javax/swing/JComponent.java +++ b/src/share/classes/javax/swing/JComponent.java @@ -4734,6 +4734,8 @@ public abstract class JComponent extends Container implements Serializable, * Notifies this component that it now has a parent component. * When this method is invoked, the chain of parent components is * set up with KeyboardAction event listeners. + * This method is called by the toolkit internally and should + * not be called directly by programs. * * @see #registerKeyboardAction */ @@ -4750,6 +4752,8 @@ public abstract class JComponent extends Container implements Serializable, * Notifies this component that it no longer has a parent component. * When this method is invoked, any KeyboardActions * 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 */ -- GitLab