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

apache - 504 Gateway Time-out The server didn't respond in time. How to fix it? -

c# - .net WebSocket: CloseOutputAsync vs CloseAsync -

c++ - How to properly scale qgroupbox title with stylesheet for high resolution display? -