aspose file tools*
The moose likes Swing / AWT / SWT and the fly likes Want to add Checkbox in JTable and perform remove and update operation for selected checkbox Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Want to add Checkbox in JTable and perform remove and update operation for selected checkbox" Watch "Want to add Checkbox in JTable and perform remove and update operation for selected checkbox" New topic
Author

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

Sandip Sonar
Greenhorn

Joined: Aug 12, 2013
Posts: 2
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

Joined: Jun 13, 2009
Posts: 2091
    
    7
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
 
subject: Want to add Checkbox in JTable and perform remove and update operation for selected checkbox
 
Similar Threads
jtable
JTable
JTable
JTable(!!!)
Want to capture data from java input coponents into Jtable which grow dyanamically