Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via Oracle Community by 807596, 1 year ago
Do not use PanelEvents.add() use PanelEvents.getContentPane().add() instead
via Oracle Community by 807597, 2 years ago
Do not use lab1.add() use lab1.getContentPane().add() instead
via Google Groups by Tobias Müller, 5 months ago
Do not use javax.swing.JFrame.add() use javax.swing.JFrame.getContentPane().add() instead
via Stack Overflow by Extorcs
, 6 months ago
Do not use javax.swing.JFrame.add() use javax.swing.JFrame.getContentPane().add() instead
via Google Groups by Fuddzy, 7 months ago
Do not use javax.swing.JFrame.add() use javax.swing.JFrame.getContentPane().add() instead
via Oracle Community by 807594, 1 year ago
Do not use KonnectHelpdeskFrame.add( ) use KonnectHelpdeskFrame.getContentPane().add() instead
java.lang.Error: Do not use PanelEvents.add() use PanelEvents.getContentPane().add() instead at javax.swing.JFrame.createRootPaneException(Unknown Source) at javax.swing.JFrame.addImpl(Unknown Source) at java.awt.Container.add(Unknown Source) at PanelEvents.<init>(PanelEvents.java:34) at PanelEvents.main(PanelEvents.java:39)