I have an object Object1 where a jTextArea is declared as

public jTextArea txtArea;

I also have another object Object2 declared in Object1

private InnerObjects Object2;

Whenever I try to access txtArea from Object2 I get an error. The error is not solved by switch Object2 into a static method. How would I be able to access txtArea? Thanks.