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 807549, 1 year ago
Do not use RecBt.add() use >RecBt.get ContentPane().add() instead
via Oracle Community by 807597, 1 year ago
Do not use lab1.add() use lab1.getContentPane().add() instead
via Google Groups by Tobias Müller, 2 months ago
Do not use javax.swing.JFrame.add() use javax.swing.JFrame.getContentPane().add() instead
via Stack Overflow by Extorcs
, 3 months ago
Do not use javax.swing.JFrame.add() use javax.swing.JFrame.getContentPane().add() instead
via Coderanch by Mitchell Mock, 1 year ago
Do not use javax.swing.JFrame.add() use javax.swing.JFrame.getContentPane().add() instead
via Google Groups by Fuddzy, 4 months ago
Do not use javax.swing.JFrame.add() use javax.swing.JFrame.getContentPane().add() instead
java.lang.Error: Do not use RecBt.add() use RecBt.get
ContentPane().add() instead	at javax.swing.JFrame.createRootPaneException(JFrame.java:446)	at javax.swing.JFrame.addImpl(JFrame.java:472)	at java.awt.Container.add(Container.java:298)	at undefined.RecBt.(RecBt.java:25)	at undefined.RecBt.main(RecBt.java:88)