Java Error Exception in thread “AWT-EventQueue-0” java.lang.StackOverflowError

I fixed the error by removing all the runOnce stuff in the testing class and change the button clicked code to

testing s = new testing();
s.setVisible(true);
setVisible(false);

Leave a Comment