> In order for ClassB to use methods from ClassA I had to instantiate ClassA
> inside of ClassB.
>
> Everything works but the "problem" is when I call methods from the
> instantiated version of ClassA I never see any of output on the GUI / frame
> because its being done on a different instance of ClassA.
You'll need to make ClassA a singleton.
First, hide the constructor of ClassA by making it private.
Then create a static method called something like "getInstance()" and write:
private static ClassA classAInstance = null;
public static ClassA getInstance() {
if (classAInstance == null)
classAInstance = new ClassA();
return classAInstance;
}
That way, you'll always be working with the same class instance.

Signature
Josef Garvi
"Reversing desertification through drought tolerant trees"
http://www.eden-foundation.org/
new income - better environment - more food - less poverty
Brandon Walters - 10 Mar 2004 20:55 GMT
I have done everything you said but I am still getting problems. When I
called ClassA print methods from ClassB the calls are working but I can't
see the effects because they are happening in the wrong instance I am
guessing.
When the program is first run there is a "main" instance of ClassA. Somehow
I need to be drawing on that instance.
I still am unsure of how to just have one instance of ClassA....
Thanks,
Brandon
> > In order for ClassB to use methods from ClassA I had to instantiate ClassA
> > inside of ClassB.
[quoted text clipped - 4 lines]
>
> You'll need to make ClassA a singleton.