• Post Reply Bookmark Topic Watch Topic
  • New Topic

Clear Screen(reset Component)  RSS feed

 
Michelle Joe
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Assume different components (JTextField, JCheckBox, JTable) have been created on a form & each component is holding some values.
Is there any API to clear the screen (reset all the components)?
or i should reset each component one by one?
 
David Crossett
Ranch Hand
Posts: 102
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Look into the validate() method...not sure that's what you want, but could be...
 
David Crossett
Ranch Hand
Posts: 102
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
sorry about the stupid response...I think you're right...you'll need to reset each component in some sort of actionEvent method...
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!