java.lang.Error

Do not use RecBt.add() use >RecBt.get ContentPane().add() instead

Solutions on the web668

  • via Oracle Community by 807549, 10 months 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 Oracle Community by 807598, 1 year ago
    Do not use ButtonFrame.add() use ButtonFrame.getContentPane().add() instead
  • Stack trace

    • 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 RecBt.<init>(RecBt.java:25) at RecBt.main(RecBt.java:88)

    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

    You are the first who have seen this exception. Write a tip to help other users and build your expert profile.