From 7bc8c8a57e73d5baae96f2d7457acada4f58fe3d Mon Sep 17 00:00:00 2001 From: Pavel Porvatov 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 --- jdk/src/share/classes/javax/swing/JComponent.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/jdk/src/share/classes/javax/swing/JComponent.java b/jdk/src/share/classes/javax/swing/JComponent.java index 6f017402ec7..78fddfcb11b 100644 --- a/jdk/src/share/classes/javax/swing/JComponent.java +++ b/jdk/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 */