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

How to reset JPanel in java

 
pooja prabhu
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How to reset JPanel and JTabedPane in java??? Can anyone help
 
Darryl Burke
Bartender
Posts: 5126
11
Java Netbeans IDE Opera
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What does it mean to you to 'reset' a JPanel or a JTabbedPane?
 
pooja prabhu
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When i click on button..... tabs are created with JPanel..tabs values are taken from database......When i click on button for 2nd time all contents from jpanel should clear and new values should be uploaded
 
Rob Spoor
Sheriff
Pie
Posts: 20529
54
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What have you tried so far?
 
pooja prabhu
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have tried JPanel.removeAll(); Jpanel.revalidate and JPanel.repaint
 
Michael Dunn
Ranch Hand
Posts: 4632
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Why would you remove the components that
display the db values?

change the text for labels/textfields etc.
or change the model for tables/comboBoxes etc.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic