Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Having problem in resetting the value of JTable

 
Rajesh k Jha
Ranch Hand
Posts: 72
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello to everyone,
Actually, I have created a form where i have used Table to fill the data from user,but after submit of the form i want the table data to be set as earlier i mean blank, so that other form can be filled easily, But i am not able to do so, As i have been googling but still not able to find the solution, Hence help needed.

In the below code i am getting table data as it changes

Then i use below code to fetch the data in String variable when "Submit" Button is pressed
In the ActionListener of JButton


But how can i reset the whole table value is my query ?
 
Maneesh Godbole
Saloon Keeper
Posts: 11027
12
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
 
Michael Dunn
Ranch Hand
Posts: 4632
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
> System.out.println("class1Girls "+class1Girls);

oldest business in the world?
 
Rajesh k Jha
Ranch Hand
Posts: 72
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Maneesh,

It was like wonder for me, i have been trying throughout day, but i never thought it would be so easy.
Thanks again Maneesh.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic