Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to add JCheckbox as the data in a table column

 
sanjay kams
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

In my GUI page, contains a table. The table has four columns and also have add button. The add button dialog have a checkbox and some other stuffs and ok button. when we click ok button in add dialog, the entries are need to be entered into the table. The first column entry is a check box, it may be enabled or disabled based on the selection in the add dialog. But am not able to place the checkbox as a entry in the table

Can anyone help me please..

Thanks in Advance.
 
Michael Dunn
Ranch Hand
Posts: 4632
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
the Swing tutorial for JTable includes
an example of using a JCheckbox.

If google can't find it, open the apidocs, follow the links.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic