This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes Having problem in resetting the value of JTable Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Having problem in resetting the value of JTable" Watch "Having problem in resetting the value of JTable" New topic
Author

Having problem in resetting the value of JTable

Rajesh k Jha
Ranch Hand

Joined: May 10, 2009
Posts: 72
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

Joined: Jul 26, 2007
Posts: 10268
    
    8



[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
Michael Dunn
Ranch Hand

Joined: Jun 09, 2003
Posts: 4632
> System.out.println("class1Girls "+class1Girls);

oldest business in the world?
Rajesh k Jha
Ranch Hand

Joined: May 10, 2009
Posts: 72
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Having problem in resetting the value of JTable