Accessing a method in another class
The basic set up that I have is one class (e.g. A) that creates instances of two other classes (e.g. B and C), and I want to be able to access methods in B from C.. The reason I instantiate B and C in A is because A is my JFrame, and the classes B and C are in different BorderLayout positions.
When class B is instantiated, it is passed a reference to class C, so I can access methods in C from B, but not the other way.
Does anyone know how I could do this (access methods in class B from class C)?
I've tried to keep the question as simple as possible, but if you want me to post my code, I can do that..
Thanks
Denno