java how to get top level container of a compoent?

Posted by 5YrsLaterDBA on Stack Overflow See other posts from Stack Overflow or by 5YrsLaterDBA
Published on 2010-04-18T02:55:23Z Indexed on 2010/04/18 3:03 UTC
Read the original article Hit count: 265

Filed under:
|

is there a way to get the top level container of a component? For example I have a JToolbar and I want to know at one monent the top level container of that JToolbar is my JFrame or is its own window, a JDialog.

© Stack Overflow or respective owner

Related posts about java

Related posts about swing