Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

AWT in an Applet

 
Tim Glass
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If I have define the layout as a BorderLayout, and have a component at the NORTH, CENTER and SOUTH positions; then later I set those component's visibility to "false" and remove them via remove() - then add new components in their place...why does the new component in the SOUTH position not show up until I push reload on the browser?
 
Madhav Lakkapragada
Ranch Hand
Posts: 5040
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
why does the new component in the SOUTH position not
show up until I push reload on the browser?

could you share your code with us?
let us know.
regds.
- satya
 
Tim Glass
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Actually, I finally figured it out...
I called paintAll() after adding the component and now it works just fine. I knew to focus on repainting the components because hitting reload in Netscape would show the component's correctly.
New question:
I have a chart, I want to draw to the chart after it's created...how do I do this?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic