Skip to content

Commit

Permalink
8272148: JDesktopPane:getComponentCount() returns one extra than expe…
Browse files Browse the repository at this point in the history
…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/JComponent.java
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="https://docs.oracle.com/javase/tutorial/uiswing/misc/focus.html">
Expand Down

1 comment on commit 70c9e02

@openjdk-notifier
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.