开发者

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...

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜