Question: in this code i want when the user click on the selected row in jtable and then click on remove button it will delete.Then the
jButton2-setText("Delete from cart"); jButton2.addactionListener (new Iavazant,event,ActionListener () \& public void actionperpormed(java.aut.event.Actionsvent evt) I if(table-getselectedrow() 1=1) I // remove selected row from the model ((DefaultTableModel) table.getmodel ()) - removeron (table.getselectedRow ()); double total =0; for (int i=0;i
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
