Win a copy of AWS Security this week in the Cloud/Virtualization forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • salvin francis
  • fred rosenberger

Adding/Removing Panels outside of Init

 
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 ]
 
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.
 
I claim this furniture in the name of The Ottoman Empire! You can keep this tiny ad:
Devious Experiments for a Truly Passive Greenhouse!
https://www.kickstarter.com/projects/paulwheaton/greenhouse-1
    Bookmark Topic Watch Topic
  • New Topic