Declare two classes from eachother.

Posted by tumba25 on Stack Overflow See other posts from Stack Overflow or by tumba25
Published on 2010-04-09T02:00:28Z Indexed on 2010/04/09 2:03 UTC
Read the original article Hit count: 299

Filed under:
|

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?

© Stack Overflow or respective owner

Related posts about java

Related posts about classes