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

Problem with JTable and Checkbox

 
Pradeep Selvaraj
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi!
I jus came across with this problem. I created a JTable in which one column is a Selection using CheckBox. The problem is that instead of gettin the checkbox when i click on the row i get either "TRUE" or "FALSE".Is there any way to display the Checkbox instead of boolean values.
Thanks,
Pradeep
 
Paul Stevens
Ranch Hand
Posts: 2823
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Use Boolean and you will get that automatically.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic