java - remove a selected checkbox row(single and multiple) in JTable -
I want to remove the row (one or more of both) whose checkbox was selected in jtable through a button It is not working properly. It is throwing exceptions. This is the code ..
Private zeros jButton2ActionPerformed (java.awt.event.ActionEvent evt) {DefaultTableModel Model = (DefaultTableModel) jTable2.getModel (); For (int i = 0; i
That's because if the combobox is not selected, then you zero
not incorrect
. To prevent this, you can check the tap or not before
DefaultTableModel Model = (DefaultTableModel) jTable2.getModel (); For (int i = 0; i
Comments
Post a Comment