Pattern selector

Most relevant patterns first. Most helpful ones displayed. Click here to show all.

  1. Container.add() has thrown an Error
    Java Runtime
    1
    0
    5
  2. JFrame.createRootPaneException() has thrown an Error
    Java Runtime
    1
    0
    8

Your stack trace compared to the selected pattern

Jump to solutionsExpand frames
java.lang.Error: Do not use javax.swing.JFrame.add() use javax.swing.JFrame.getContentPane().add() instead
1 matching frame hidden
    at javax.swing.JFrame.addImpl(JFrame.java:491)
    at java.awt.Container.add(Container.java:307)
    at HelloJava.main(HelloJava.java:37)

External results for this pattern (10)

  1. 807598via Oracle Community5 months ago
    Do not use Authenticator.add() use Authenticator.getContentPane().add() instead
    Show stack trace
  2. 807598via Oracle Community5 months ago
    Do not use ButtonFrame.add() use ButtonFrame.getContentPane().add() instead
    Show stack trace
  3. 807597via Oracle Community6 months ago
    Do not use lab1.add() use lab1.getContentPane().add() instead
    Show stack trace
  4. Stefan Bräuvia Google Groups10 months ago
    Do not use javax.swing.JFrame.add() use
    Show stack trace
  5. Tobias Müllervia Google Groups11 months ago
    Do not use javax.swing.JFrame.add() use javax.swing.JFrame.getContentPane().add() instead
    Show stack trace
  6. Garrick Peisleyvia Google Groups1 year ago
    Do not use DayEditor.add() use DayEd itor.getContentPane().add() instead
    Show stack trace
  7. Fuddzyvia Google Groups1 year ago
    Do not use javax.swing.JFrame.add() use javax.swing.JFrame.getContentPane().add() instead
    Show stack trace
  8. Unknown authorvia Google Groups1 year ago
    Do not use JFrameTest.add() use JFrameTest.getContentPane().add() instead
    Show stack trace
  9. 807600via Oracle Community1 year ago
    Do not use MortgageGUIv4_1.add() use MortgageGUIv4_1.getContentPane().add() instead
    Show stack trace
  10. 807546via Oracle Community1 year ago
    Do not use PhoneBook.add() use Phone Book.getContentPane().add() instead
    Show stack trace