• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Adding/Removing Panels outside of Init

 
Dan Nissen
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi everyone again,
I seem to be having a bit of a problem with adding and removing Panels outside of the init function in my applet. Since there is alot of code I have put my .java file up on my webspace ... if anyone can help have a look at DealerMain() and see if there is something im doing wrong.
The Url for my code is http://members.optushome.com.au/genmail/
Thanks alot!
Dan
[ June 13, 2002: Message edited by: Marilyn deQueiroz ]
 
Manfred Leonhardt
Ranch Hand
Posts: 1492
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Dan,
If you are removing and adding items you will need to tell the parent panel to layout all the changed components. To do this you need to call:
revalidate();
This will essentially invalidate() and validate() your parent panel so that your new components show up and look nice.
Regards,
Manfred.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic