Customizing jTable
Posted
by gmile
on Stack Overflow
See other posts from Stack Overflow
or by gmile
Published on 2010-03-20T13:55:25Z
Indexed on
2010/03/20
14:01 UTC
Read the original article
Hit count: 222
I need to customize my jTable. All I need, is to put a custom Swing object (like jButon, jPanel, etc.) into the table cell. Is it possible? I'm trying:
jTable.getModel.setValueAt(jPanel1,0,0)
and
jTable.getModel.setValueAt(jPanel1.getUI(),0,0)
But the result is only a some kind of string, representing the object... Any ideas?
© Stack Overflow or respective owner