This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How to reset JPanel in java  RSS feed

 
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: 5167
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
Posts: 21090
85
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
Boost this thread!