I have the following code to retrieve information from a text box to another within the same class
btnAddItem.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
String tabno = textArea_TableNo.getText();
String name = textArea_Name.getText();
String size = textArea_size.getText();
String quan = textArea_quantity.getText();
String price = textArea_price.getText();
textArea.append(tabno + ", " + name + ", " + size + ", " + quan + ", " + price + "\n");
But I am not sure how to do this exactly same operation between two class. I probably have to "extend" my class but I've already extended the class to my database class. Im just not sure how else I can do this. Any suggestions to get my head around this would be appreciated..