Clear all labels

Hello,I have a button.If somebody press it all Cotainersshould be clear.Do you know a way to do this?THXjosef
[158 byte] By [josefluetha] at [2007-9-29 17:22:27]
# 1
Remove all the added components from the container(s).
Massjea at 2007-7-15 16:12:21 > top of Java-index,Archived Forums,Java Programming...
# 2
How does it work?I wrote:add (new Button ("ssd"));add (new Label("sdddd"));add(new TextField());...And now I want to make something,that the user will not see all the added containers.
josefluetha at 2007-7-15 16:12:21 > top of Java-index,Archived Forums,Java Programming...
# 3
Can I paint something over the containers?Thanks!
josefluetha at 2007-7-15 16:12:21 > top of Java-index,Archived Forums,Java Programming...
# 4
remove(thisOne);remove(thatOne); // and validate();
The-Suea at 2007-7-15 16:12:21 > top of Java-index,Archived Forums,Java Programming...
# 5
> Can I paint something over the containers?> No.
The-Suea at 2007-7-15 16:12:21 > top of Java-index,Archived Forums,Java Programming...
# 6
Though you can do;thisOne.setvisible(false);
The-Suea at 2007-7-15 16:12:21 > top of Java-index,Archived Forums,Java Programming...
# 7
There's the problem, that I don't know the container :-(
josefluetha at 2007-7-15 16:12:21 > top of Java-index,Archived Forums,Java Programming...
# 8
use getParent() on any component within a container, to get the container reference.
omcgoverna at 2007-7-15 16:12:21 > top of Java-index,Archived Forums,Java Programming...