开发者

jtable - accessing object behind the row

开发者 https://www.devze.com 2023-02-01 21:07 出处:网络
using a jtable - Can I get the object behind开发者_StackOverflow the rowThe data displayed in a JTable should be backed by a TableModel, in general a class mapping from a set of business objects to a

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

精彩评论

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

关注公众号