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

Popular posts from this blog

HTML/CSS - Automatically set height width from background image? -

php - Mysql Show Process - Sleep Commands and what to do -

c - What is the address of buf (the local variable in the main function)? -