File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Want to add Checkbox in JTable and perform remove and update operation for selected checkbox

 
Sandip Sonar
Greenhorn
Posts: 2
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,
I Want to add Checkbox in JTable and on selected checkbox I want to delete or update the content in JTable please provide me your help..
 
Rob Camick
Ranch Hand
Posts: 2476
8
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Read the JTable API and follow the link to the Swing tutorial on How to Use Tables for and example of how to add Boolean data to the model so it will be rendered as a check box.

Then you can add a TableModelListener to the TableModel to listen for changes to the model. When a cell containing your Boolean value becomes selected you can then delete the row from the model.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic