wood burning stoves 2.0*
The moose likes Swing / AWT / SWT and the fly likes AWT in an Applet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "AWT in an Applet" Watch "AWT in an Applet" New topic
Author

AWT in an Applet

Tim Glass
Greenhorn

Joined: Oct 29, 2000
Posts: 17
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

Joined: Jun 03, 2000
Posts: 5040
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

Take a Minute, Donate an Hour, Change a Life
http://www.ashanet.org/workanhour/2006/?r=Javaranch_ML&a=81
Tim Glass
Greenhorn

Joined: Oct 29, 2000
Posts: 17
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?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: AWT in an Applet