java.lang.Error

Do not use HelloWorld.add() use Hell oWorld.getContentPane().add() instead

Samebug tips0

We couldn't find tips for this exception.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web28

  • via Unknown by jred ken,
  • via Unknown by 807607,
  • via Unknown by 807598,
  • Stack trace

    • java.lang.Error: Do not use HelloWorld.add() use Hell oWorld.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 HelloWorld.<init>(HelloWorld.java:15) at HelloWorld.main(HelloWorld.java:50)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    We couldn't find other users who have seen this exception.