Hey guys,
I've constructed the main class to refer to a variable in it and I receive a stack overflow error. Any suggestions on the causes of this error, I've used this method previously and have not got this before.
In other class:
MainClass class = new MainClass();
errors:
Exception in thread "main" java.lang.StackOverflowError
at java.awt.Insets.<init>(Insets.java:86)
at sun.awt.windows.WToolkit.getScreenInsets(Native Method)
at sun.awt.windows.WToolkit.getScreenInsets(WToolkit.java:549)
at java.awt.Window.init(Window.java:395)
at java.awt.Window.<init>(Window.java:433)
at jav
. . . and so on
Cleo