java.lang.Error: Do not use javax.swing.JFrame.add() use javax.swing.JFrame.getContentPane().add() instead

Coderanch | Stephen Boston | 1 decade ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    Multiple JFrames in 1 Container

    Coderanch | 1 decade ago | Stephen Boston
    java.lang.Error: Do not use javax.swing.JFrame.add() use javax.swing.JFrame.getContentPane().add() instead
  2. 0

    I got 5  lines of "exeption in thread main"

    Oracle Community | 2 decades ago | 807554
    java.lang.Error: Do not use javax.swing.JFrame.add() use javax.swing.JFrame.getContentPane().add() instead
  3. 0

    moving rectangle(GUI)

    Oracle Community | 1 decade ago | 807597
    java.lang.Error: Do not use lab1.add() use lab1.getContentPane().add() instead
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Compile problems with Netbeans

    Oracle Community | 1 decade ago | 807598
    java.lang.Error: Do not use ButtonFrame.add() use ButtonFrame.getContentPane().add() instead
  6. 0

    Error runnning program using javx.swing in jcreator

    Coderanch | 1 decade ago | Mitchell Mock
    java.lang.Error: Do not use javax.swing.JFrame.add() use javax.swing.JFrame.getContentPane().add() instead

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.Error

      Do not use javax.swing.JFrame.add() use javax.swing.JFrame.getContentPane().add() instead

      at javax.swing.JFrame.createRootPaneException()
    2. Java RT
      Container.add
      1. javax.swing.JFrame.createRootPaneException(JFrame.java:465)
      2. javax.swing.JFrame.addImpl(JFrame.java:491)
      3. java.awt.Container.add(Container.java:307)
      3 frames
    3. Unknown
      Testing.main
      1. Testing.<init>(Testing.java:16)
      2. Testing.main(Testing.java:27)
      2 frames