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

problem with updating Panel!

George Kalfas
Greenhorn

Joined: Aug 05, 2004
Posts: 22
Hallo all,

I am working on an application and i am using AWT (because i don't know Swing!). My application has a Frame using BorderLayout and three Panels that are set in the WEST,SOUTH and CENTER positions of my Frame.The CENTER Panel has lots of other Panels inside.
My problem is this: If i press a button on the WEST Panel something comes up in my CENTER Panel.After i press a next button inside my CENTER Panel i want it to display some other stuff and completely wiping out the previous.In other words i want to update a certain Panel only.How am i going to do that?

I know my english isn't the best so if i'm not clear plz ask me!

Thanks a lot
Craig Wood
Ranch Hand

Joined: Jan 14, 2004
Posts: 1535
The simple answer to what I think you are asking is that you get a reference to the thing(s) you want to change and use it to call methods to make the changes. For example, in the demo app below, for class Blue to change the color of the colorPanel in class Red it needs a reference to class Red and uses this to call a method in Red to change the color. How you want to put things together (so they can communicate among themselves) is a matter of what works and what you're comfortable with. Trial and error and practice lead to success.
George Kalfas
Greenhorn

Joined: Aug 05, 2004
Posts: 22
thanx a lot! U've been great help!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: problem with updating Panel!
 
Similar Threads
GIU troubles
need help.
awt
Issue in Displaying panel
Swing Windowing