Understanding OOP and static in java : Alright,
Suppose you have **class A** and **class B**. **Class A** is the main class which builds a frame with a GUI. It contains all the GUI variables (such as buttons, labels, strings) along with whatever methods that you'll be using. **Class A** also creates a **class B** object:

    ClassB name = new ClassB();

Inside **class B** you will find a **for loop**. Now, once the for loop is finished looping, I want to call a method located in **class A.** Whenever I try calling a method located in **class A**, Eclipse insists making that method **static**. I'm trying to avoid making static methods. Is there any way around this problem? 