removeNotify() in class JButton
Posted on 2010-11-13
Can some one please please explain this removeNotify() method to me in JButton class. ?
Moreover I pretty much understand the component hierarchy, but not sure about what "root pane" is all about ..
thanks a lot !
public void removeNotify()
Overrides JComponent.removeNotify to check if this button is currently set as the default button on the RootPane, and if so, sets the RootPane's default button to null to ensure the RootPane doesn't hold onto an invalid button reference.