Java SplitPaneDemo not working?
-
29-10-2019 - |
Question
I am trying to get this up code up and running from java official site but I am getting
Exception in thread "AWT-EventQueue-0" java.lang.StackOverflowError
at sun.awt.Win32GraphicsConfig.getBounds(Native Method)
at sun.awt.Win32GraphicsConfig.getBounds(Unknown Source)
at java.awt.Window.init(Unknown Source)
at java.awt.Window.<init>(Unknown Source)
at java.awt.Frame.<init>(Unknown Source)
at javax.swing.JFrame.<init>(Unknown Source)
Also, at the following line, the method doesn't even exist. I am using getContentPane()
instead.
JSplitPane top = splitPaneDemo.getSplitPane();
No correct solution
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow