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

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 total must be updated. yet the total is stay the same but the selected row is deleted.
so how i'm gonna fix this?
in this code i want when the user click on the selected

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!