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 ]
posted 14 years ago
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.
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads