Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Adding Button and check box in JTable  RSS feed

 
Savvy Makol
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How can we add JButton and JCheckBox in different columns of the same table.
 
Abhik Sarkar
Ranch Hand
Posts: 61
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Savvy,
Some where in here, you should find an example of what you are looking for...
Regards,
Abhik.
 
VIJAY Yadlapati
Ranch Hand
Posts: 175
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You have to write two separate CelleRenderers both implemanting TableCellRenderer and call setCellRenderer() on TableColumn.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!