Hi, I'm having a problem where I get an error at a throws declaration.
This is the error:
Exception in thread "AWT-EventQueue-0" java.lang.StackOverflowError at sun.awt.SunToolkit.isInstanceOf(Unknown Source) at sun.awt.SunToolkit.isInstanceOf(Unknown Source) at sun.awt.SunToolkit.isInstanceOf(Unknown Source) at sun.awt.SunToolkit.isInstanceOf(Unknown Source) at sun.awt.SunToolkit.isInstanceOf(Unknown Source) at sun.awt.SunToolkit.isInstanceOf(Unknown Source) at sun.awt.SunToolkit.isInstanceOf(Unknown Source) at javax.swing.LookAndFeel.installProperty(Unknown Source) at javax.swing.plaf.basic.BasicPanelUI.installDefaults(Unknown Source) at javax.swing.plaf.basic.BasicPanelUI.installUI(Unknown Source) at javax.swing.JComponent.setUI(Unknown Source) at javax.swing.JPanel.setUI(Unknown Source) at javax.swing.JPanel.updateUI(Unknown Source) at javax.swing.JPanel.<init>(Unknown Source) at javax.swing.JPanel.<init>(Unknown Source) at javax.swing.JPanel.<init>(Unknown Source) at layout.GameClient2.<init>(GameClient2.java:60) at layout.GameClient2.<init>(GameClient2.java:109) at layout.GameClient2.<init>(GameClient2.java:109) at layout.GameClient2.<init>(GameClient2.java:109) at layout.GameClient2.<init>(GameClient2.java:109) at layout.GameClient2.<init>(GameClient2.java:109) at layout.GameClient2.<init>(GameClient2.java:109) at layout.GameClient2.<init>(GameClient2.java:109) at layout.GameClient2.<init>(GameClient2.java:109) at layout.GameClient2.<init>(GameClient2.java:109) at layout.GameClient2.<init>(GameClient2.java:109) at layout.GameClient2.<init>(GameClient2.java:109) at layout.GameClient2.<init>(GameClient2.java:109) at layout.GameClient2.<init>(GameClient2.java:109) at layout.GameClient2.<init>(GameClient2.java:109) at layout.GameClient2.<init>(GameClient2.java:109) at layout.GameClient2.<init>(GameClient2.java:109) at layout.GameClient2.<init>(GameClient2.java:109) at layout.GameClient2.<init>(GameClient2.java:109) at layout.GameClient2.<init>(GameClient2.java:109) at layout.GameClient2.<init>(GameClient2.java:109) at layout.GameClient2.<init>(GameClient2.java:109) at layout.GameClient2.<init>(GameClient2.java:109) at layout.GameClient2.<init>(GameClient2.java:109) at layout.GameClient2.<init>(GameClient2.java:109) at layout.GameClient2.<init>(GameClient2.java:109) at layout.GameClient2.<init>(GameClient2.java:109) at layout.GameClient2.<init>(GameClient2.java:109) at layout.GameClient2.<init>(GameClient2.java:109) at layout.GameClient2.<init>(GameClient2.java:109) at layout.GameClient2.<init>(GameClient2.java:109) at layout.GameClient2.<init>(GameClient2.java:109) at layout.GameClient2.<init>(GameClient2.java:109) at layout.GameClient2.<init>(GameClient2.java:109) at layout.GameClient2.<init>(GameClient2.java:109) at layout.GameClient2.<init>(GameClient2.java:109) at layout.GameClient2.<init>(GameClient2.java:109) at layout.GameClient2.<init>(GameClient2.java:109) at layout.GameClient2.<init>(GameClient2.java:109) at layout.GameClient2.<init>(GameClient2.java:109) at layout.GameClient2.<init>(GameClient2.java:109) at layout.GameClient2.<init>(GameClient2.java:109) at layout.GameClient2.<init>(GameClient2.java:109) at layout.GameClient2.<init>(GameClient2.java:109) at layout.GameClient2.<init>(GameClient2.java:109) at layout.GameClient2.<init>(GameClient2.java:109) at layout.GameClient2.<init>(GameClient2.java:109) at layout.GameClient2.<init>(GameClient2.java:109) at layout.GameClient2.<init>(GameClient2.java:109) at layout.GameClient2.<init>(GameClient2.java:109) at layout.GameClient2.<init>(GameClient2.java:109) at layout.GameClient2.<init>(GameClient2.java:109) at layout.GameClient2.<init>(GameClient2.java:109) at layout.GameClient2.<init>(GameClient2.java:109) at layout.GameClient2.<init>(GameClient2.java:109) at layout.GameClient2.<init>(GameClient2.java:109) at layout.GameClient2.<init>(GameClient2.java:109)
Here is the relevant code:
I can't put line 109 in the throws exception because then it wouldn't be visible for when I use it later in the program.