I'm writing a app in NetBeans. I have two classes MyApp_View and MyApp_Functions.
The MyApp_View class starts like this
public class MyApp_View extends FrameView {
MyApp_Functions My_functions = new MyApp_Functions();
public MyApp_View(SingleFrameApplication app) {
super(app);
In MyApp_Functions I have
MyApp_View my_view = new MyApp_View(null);
I want to access the public variables in MyApp_View from MyApp_Functions and the public methods in functions from view, but have no success with this.
Is this doable? And how?
Edit: Judging by the answer I got I think it's best to clarify.
If I declare MyApp_View in MyApp_Functions or MyApp_Functions in MyApp_View, it works as expected. But I can't access public stuff in both classes from the other. I can obviously only access things from the one I declared.
If I try to declare MyApp_View in MyApp_Functions and MyApp_Functions in MyApp_View they compile fine. But I get a null exception error on start.
Again. Easier to understand? Is this doable? And how?