• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Knute Snortum
  • Bear Bibeault
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Frits Walraven
  • Carey Brown
  • Tim Holloway

How to copy checked rows from one jTable to another?

 
Greenhorn
Posts: 4
IntelliJ IDE Netbeans IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

My task is like below,

1. I've a data in Table t1 with first column as checkboxes.
2. when ever i check the particular checkbox, the entire row must be copied to another table.
3. when i uncheck any particula checkbox from the first table, that particular copied row must be deleted from second table.

The above is my issue past 4 days. Guys any one who could help me with the code and explanation. I really am stuck at this in entire project. I've tried a code for this,


     
code1.PNG
[Thumbnail for code1.PNG]
When checked from the first table.
code2.PNG
[Thumbnail for code2.PNG]
When unchecked first checkbox
 
Rancher
Posts: 4115
47
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!