• 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
  • Devaka Cooray
  • Knute Snortum
  • Paul Clapham
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Frits Walraven
Bartenders:
  • Ganesh Patekar
  • Tim Holloway
  • salvin francis

Erasing and Refilling the data  RSS feed

 
Ranch Hand
Posts: 68
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a frame. Two panels are attached to that frame. First panel consists of a question and answer fields. The second panel consists of a button. After answering the first question when the button is pressed the whole frame is getting disposing but I didn't want the whole frame to be disposed. Only the fist panel should be disposed and when the button is pressed the next question should appear. How can I acheive this?
 
Ranch Hand
Posts: 434
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It is difficult to guess why the whole frame is being disposed. Please post code to make your question clearer.

I think maybe on your button press you are telling te frame to close. When what you need is to remove the panel you don't want anymore and place there the one that you do.

Cheers,
Rachel
 
Vallabhaneni Suresh Kumar
Ranch Hand
Posts: 68
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Mr.Rachel,
Can you give me a small sample code for disposing only the required panel but not the whole frame whereas the frame consists of three panels. Thanks for your reply.

Waiting for your reply
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!