I have two jdialogs first purchase second find_Supplier where purchase is having two text fields and find_supplier has a jtable now what i want is to get values from jtable's specific cell and put them into text fields of first dialog on click of JButton. So far i am able to access values from jtable's cells but i can't put them into text fields
Here is the code for opening find_supplier dialog
find_supplier fs=new find_supplier(null,true);
fs.setVisible(true);
And here is the code to put values in text fields
purchase_item pi=new purchase_item(null, true);
pi.txtSupAddress.setText(address);
pi.txtSupName.setText(name);
this.dispose();
//pi.setVisible(true) This opens new JDialog so no need of it
Note: Both dialogs are modal