If the other class was named OtherClassand the JTextArea was named textAreaOtherClass anotherClass = new OtherClass();JTextArea myTextArea =anotherClass.textArea;orJTextArea myTextArea = (new OtherClass()).textArea;