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

Oracle Community | 807577 | 1 decade ago
  1. 0

    Opening Applets from Applets

    Oracle Community | 1 decade ago | 807577
    java.lang.Error: Do not use javax.swing.JFrame.add() use javax.swing.JFrame.getContentPane().add() instead
  2. 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
  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

    Assistance needed on this code, please

    Oracle Community | 1 decade ago | 807607
    java.lang.Error: Donot use HelloWorld.add() use HelloWorld.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:402)
      2. javax.swing.JFrame.addImpl(JFrame.java:428)
      3. java.awt.Container.add(Container.java:267)
      3 frames
    3. orderproc
      mainpage.actionPerformed
      1. orderproc.mainpage.actionPerformed(mainpage.java:106)
      1 frame
    4. Java RT
      EventDispatchThread.run
      1. javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1450)
      2. javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButton.java:1504)
      3. javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:378)
      4. javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:250)
      5. javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:216)
      6. java.awt.Component.processMouseEvent(Component.java:3715)
      7. java.awt.Component.processEvent(Component.java:3544)
      8. java.awt.Container.processEvent(Container.java:1164)
      9. java.awt.Component.dispatchEventImpl(Component.java:2593)
      10. java.awt.Container.dispatchEventImpl(Container.java:1213)
      11. java.awt.Component.dispatchEvent(Component.java:2497)
      12. java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:2451)
      13. java.awt.LightweightDispatcher.processMouseEvent(Container.java:2216)
      14. java.awt.LightweightDispatcher.dispatchEvent(Container.java:2125)
      15. java.awt.Container.dispatchEventImpl(Container.java:1200)
      16. java.awt.Component.dispatchEvent(Component.java:2497)
      17. java.awt.EventQueue.dispatchEvent(EventQueue.java:339)
      18. java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:131)
      19. java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:98)
      20. java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
      21. java.awt.EventDispatchThread.run(EventDispatchThread.java:85)
      21 frames