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

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via Oracle Community by 807593, 1 year ago
Do not use MultiButton.add() use MultiButton.getContentPane().add() instead
via Oracle Community by 843805, 10 months ago
Do not use untitled6.SoundExample.add() use untitled6.SoundExample.getContentPane().add() instead
via wpthm.com by Unknown author, 2 years ago
Do not use SampleView.setLayout() use SampleView.getContentPane().setLayout() instead
via Google Groups by rolf gabler, 3 months ago
Do not use ThreeDc.add() use ThreeDc.getContentPane().add() ins tead
via Oracle Community by 843807, 6 months ago
Do not use Paplet.setLayout() use Paplet.getContentPane().setLayout() instead
via Oracle Community by 843807, 1 year ago
Do not use DynamicGraph.setLayout() use DynamicGraph.getContentPane().setLayout() instead
java.lang.Error: Do not use MultiButton.add() use MultiButton.getContentPane().add() instead
at javax.swing.JApplet.createRootPaneException(JApplet.java:193)
at javax.swing.JApplet.addImpl(JApplet.java:215)
at java.awt.Container.add(Container.java:228)
at undefined.MultiButton.init(MultiButton.java:24)
at sun.applet.AppletPanel.run(AppletPanel.java:344)
at java.lang.Thread.run(Thread.java:484)

Users with the same issue

You are the first who have seen this exception.

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.