Here the class object is called 'c1' and the JTextArea is called 't2'. The error Im getting says that 'The field UserInterface.t2 is not visible'.
String text = c1.t2.getText();
Here the class object is called 'c1' and the JTextArea is called 't2'. The error Im getting says that 'The field UserInterface.t2 is not visible'.
String text = c1.t2.getText();