Question: My problem is that i want each selected combobox appear in jtable when the person click on add button My code here only choose one,

My problem is that i want each selected combobox appear in jtable when the person click on add button
My code here only choose one, once i choose another book from combobox it remove the old from jtable and add the new one.
How should i fix it?
 My problem is that i want each selected combobox appear in

public void actionperformed(java.awt.event.ActionEvent evt) i string n=( string) combosox. getselecteditem(); string sql="sgLecr book_id, Titlo, Drice From Book table WHBRk Book table.titlo=" "+n+",n Dreparedstatoment st=con.preparestatement (sq1); rsmt.oxecuteguery (sq1) Resultset rs=st, executequery (sqq1); table. setmodel (Dbutils. resultsetToTableModel(rs)) 1 catch (SQLException x ) x printstackTrace ()

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!