Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Differnt components in JTable  RSS feed

 
satya sahu
Ranch Hand
Posts: 97
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,
How to use diffent editors in different cells in the JTable ? Please give me some sample code. I know how to use an editor for a particular column or for a particular row. My aim is to use different cell editors in a particular column. Say a combobox, a list. Please provide me with some sample code. It will be a great help for me.
Thanks
 
sayan maity
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You have to use TableCellRenderer.
 
Stephen Boston
Ranch Hand
Posts: 165
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
These links may help.
Creating a Custom Java Swing Table.

Add multiple JTable cell editors per column
[ August 08, 2005: Message edited by: Stephen Boston ]
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!