Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Netbeans JTable Binding - Retrieve data from selected rows

 
Bill Hayes
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
First off, I'm working in Netbeans on a Swing application using Toplink and binding.
I have all my entities set up and am able to bind to them using various components including text fields and tables. I am performing the binding by using the Netbeans GUI tools.
I have a JTable, jtable1 that is bound to one of my database tables. I have a second JTable, jtable2 that is bound to jtable1 selectedElements. I want to take the data from jtable2 and put it into a collection so I can sort and perform some calculations. Do I need to iterate over the selected rows or is there an easy way of returning jtable2 data as a collection?
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic