Determining when the parent of a JComponent has been set
Is there a Swing API method or type of listener that allows you to know when the parent of a JComponent has been开发者_JS百科 set or reset?
Just a guess, but could javax.swing.event.AncestorListener work?
精彩评论