Hi,
Problem to 'swap' a view from a Panel to another ...
There is something I misunderstand !
But don't know what
Very simple project in attachment.
If someone (very patient, I'm sure it's obvious) could help
Thks in advance
and Happy Easter
PS : initially, my need is to avoid this message (from another project) :
java.lang.IllegalStateException: The specified child already has a parent. You must call removeView() on the child's parent first.
I've read some post about GetParent and setParent, it doesn't help me
Problem to 'swap' a view from a Panel to another ...
There is something I misunderstand !
But don't know what
Very simple project in attachment.
If someone (very patient, I'm sure it's obvious) could help
Thks in advance
and Happy Easter
PS : initially, my need is to avoid this message (from another project) :
java.lang.IllegalStateException: The specified child already has a parent. You must call removeView() on the child's parent first.
I've read some post about GetParent and setParent, it doesn't help me
Attachments
Last edited: