java.lang.Error: Do not use MultiButton.add() use MultiButton.getContentPane().add() instead

Oracle Community | 807593 | 1 decade ago
  1. 0

    Why is the applet not loading though the code compiles

    Oracle Community | 1 decade ago | 807593
    java.lang.Error: Do not use MultiButton.add() use MultiButton.getContentPane().add() instead
  2. 0

    moving rectangle(GUI)

    Oracle Community | 1 decade ago | 807597
    java.lang.Error: Do not use lab1.add() use lab1.getContentPane().add() instead
  3. 0

    Compile problems with Netbeans

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

    Automated exception search integrated into your IDE

  5. 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
  6. 0

    Real Noob question

    Oracle Community | 1 decade ago | 807598
    java.lang.Error: Do not use Authenticator.add() use Authenticator.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 MultiButton.add() use MultiButton.getContentPane().add() instead

      at javax.swing.JApplet.createRootPaneException()
    2. Java RT
      Container.add
      1. javax.swing.JApplet.createRootPaneException(JApplet.java:193)
      2. javax.swing.JApplet.addImpl(JApplet.java:215)
      3. java.awt.Container.add(Container.java:228)
      3 frames
    3. Unknown
      MultiButton.init
      1. MultiButton.init(MultiButton.java:24)
      1 frame
    4. Java RT
      Thread.run
      1. sun.applet.AppletPanel.run(AppletPanel.java:344)
      2. java.lang.Thread.run(Thread.java:484)
      2 frames