micgala
17 Jun 2009, 7:01 AM
Hi.
I have a child ContentPanel which is inserted into a parent.
How do I hide (or remove) this child from its parent?
Right now, the parent is BorderLayout, so I know I can call hide in the BorderLayout...
But I do not want to be dependent on the parent's layout... since I, as a child, want to remove myself from my parent... this should be as simple as:
child.removeFromParent()
But this is not working.
Does someone have an idea on how to do this?
Tks for helping,
Michel.
I have a child ContentPanel which is inserted into a parent.
How do I hide (or remove) this child from its parent?
Right now, the parent is BorderLayout, so I know I can call hide in the BorderLayout...
But I do not want to be dependent on the parent's layout... since I, as a child, want to remove myself from my parent... this should be as simple as:
child.removeFromParent()
But this is not working.
Does someone have an idea on how to do this?
Tks for helping,
Michel.