jtable - accessing object behind the row
using a jtable - Can I get the object behind开发者_StackOverflow the row
The data displayed in a JTable should be backed by a TableModel, in general a class mapping from a set of business objects to a "table-like" display.
Have a look at the Swing tutorial.
If you tell us more about your usage scenario, one might come up with a good pattern...
As of now, @ChrisJ has the best tip.... YOu can return the POJO in one of the getValueAt columns...
精彩评论