• Post Reply Bookmark Topic Watch Topic
  • New Topic

Copy row from one JTable to another JTable?

 
Matt Midcap
Sheriff
Posts: 440
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Howdy folks,
Has anyone seen an example of how to copy data from a row(s) of one JTable to another JTable? Kind of like a JList to JList concept...
Matt
 
Matt Midcap
Sheriff
Posts: 440
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Never mind, I wrote a custom componet to do it.
Off into the sunset...
 
M Ram
Greenhorn
Posts: 4
IntelliJ IDE Java Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can you please upload the code for reference.
 
Campbell Ritchie
Marshal
Posts: 52549
119
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the Ranch

After 15 years, you may have a long wait for an answer. I suggest you find a tables tutorial and see whether ti explains how to select lines and how to add them to the table model.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!