8272148: JDesktopPane:getComponentCount() returns one extra than expected with GTKLookAndFeel

Reviewed-by: prr, serb
This commit is contained in:
Pankaj Bansal 2021-09-10 06:13:32 +00:00
parent 08f0be8388
commit 70c9e026b6

View File

@ -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.
* <p>
* A <code>JComponent</code> may contain any number of default or initial
* components as children. This behaviour may change according to look and
* feel, therefore a <code>JComponent</code> 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 <code>JComponent</code>. In summary, it is not valid
* to assume a JComponent has no children just because the application
* did not directly add them.
* <p>
* In release 1.4, the focus subsystem was rearchitected.
* For more information, see
* <a href="https://docs.oracle.com/javase/tutorial/uiswing/misc/focus.html">