Skip to content


Browse files Browse the repository at this point in the history
8272148: JDesktopPane:getComponentCount() returns one extra than expe…
…cted with GTKLookAndFeel

Reviewed-by: prr, serb
  • Loading branch information
Pankaj Bansal committed Sep 10, 2021
1 parent 08f0be8 commit 70c9e02
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/java.desktop/share/classes/javax/swing/
Expand Up @@ -181,6 +181,16 @@
* 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="">
Expand Down

1 comment on commit 70c9e02

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.