diff --git a/src/java.desktop/share/classes/javax/swing/JComponent.java b/src/java.desktop/share/classes/javax/swing/JComponent.java index 57b0e6b21df..5aa1a6a79bc 100644 --- a/src/java.desktop/share/classes/javax/swing/JComponent.java +++ b/src/java.desktop/share/classes/javax/swing/JComponent.java @@ -181,6 +181,16 @@ import static javax.swing.ClientPropertyKey.JComponent_TRANSFER_HANDLER; * need a specific value for a particular property you should * explicitly set it. *

+ * A JComponent may contain any number of default or initial + * components as children. This behaviour may change according to look and + * feel, therefore a JComponent may contain some default or + * initial components as children for a particular Look and Feel, whereas it + * may not do so for some other Look and Feel. Within a particular Look and + * Feel also, this behaviour may change depending upon the configuration + * properties of the JComponent. In summary, it is not valid + * to assume a JComponent has no children just because the application + * did not directly add them. + *

* In release 1.4, the focus subsystem was rearchitected. * For more information, see *