# HG changeset patch # User rupashka # Date 1289642687 -10800 # Node ID 6223064e4a431c180cfb7b0b2f0dd08c0c29cd92 # Parent 460a00736da92032a0e4dc0a57c0ecc5471df3bd 6899877: JComponent.add/removeNotify() should mention that they are not supposed to be called directly Reviewed-by: alexp diff -r 460a00736da9 -r 6223064e4a43 jdk/src/share/classes/javax/swing/JComponent.java --- a/jdk/src/share/classes/javax/swing/JComponent.java Fri Nov 12 10:49:52 2010 -0800 +++ b/jdk/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 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 @@ * 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 */