The Artima Developer Community
Sponsored Link

Java Answers Forum
hot swapping panels with AWT

1 reply on 1 page. Most recent reply: Sep 25, 2002 10:15 AM by Ioan Salau

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 1 reply on 1 page
Steve McDermott

Posts: 1
Nickname: stevem
Registered: Sep, 2002

hot swapping panels with AWT Posted: Sep 24, 2002 10:10 AM
Reply to this message Reply
Advertisement
Hi,
I am using a dialog window as a form controller. The form is made up of a number of subforms which are extended panels. I am using the form controller to show the different subforms of the form. I wish to instantiate each subform only when I am about to show it.
This is giving me problems. When I move from the first subform to the second, the methods on the second can be called but I cannot see the subform. I have tried repaint() and setVisible(true) but without success.
Has anyone got any ideas? Any help well appreciated!


Ioan Salau

Posts: 2
Nickname: insight
Registered: Sep, 2002

Re: hot swapping panels with AWT Posted: Sep 25, 2002 10:15 AM
Reply to this message Reply
try with invalidate(), validate(), repaint() in this order.

Flat View: This topic has 1 reply on 1 page
Topic: Calculator a Big Problem Previous Topic   Next Topic Topic: sorting question

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use