SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6 - OCEJPAD 6
How To Ask Questions How To Answer Questions
Adam Cripps wrote:I have a object which needs to change a variable of an object that created it -
I though that applied to bulls.Bear Bibeault wrote:
Adam Cripps wrote:Thanks for the link - I did see this link but was confused as to whether it would return the object that instantiated the class that calls the getParent, or whether it returned the super class. I will investigate.
Paul Clapham wrote: It returns the Swing component which contains the component which calls the method. For example if you add a JLabel to a JPanel, then calling the JLabel's getParent() method returns a reference to that JPanel. That's what "parent" means in the Swing component hierarchy.
Campbell Ritchie wrote:
I though that applied to bulls.Bear Bibeault wrote: