Parent « JComponent « Java Swing Q&A





1. Determining when the parent of a JComponent has been set    stackoverflow.com

Is there a Swing API method or type of listener that allows you to know when the parent of a JComponent has been set or reset?

2. Swing : Can children exceed the bounds of their parent?    stackoverflow.com

In Swing, can a child JComponent be rendered outside of the bounds of its parent JComponent, or are children always clipped to the bounds of their parent?