-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Null pointer error when mixing JButton and PApplet. #1937
Comments
PApplet is an Applet, so you have to call the functions to embed an Applet... |
Hmm...
But neither my code,nor the example code (modifed a shown below) work after v2.0b7. ideas? kvlinden --- Modified Embedded.java example code ---------------------------------- import java.awt.BorderLayout; import javax.swing.JButton; public class ExampleFrame extends JFrame {
} |
Please use the forum for discussions; this doesn't appear to be a bug. |
I see that there is a detailed discussion of this issue here: kvlinden |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
The (stripped down) code attached below throws the following null-pointer error:
Exception in thread "Animation Thread" java.lang.NullPointerException
at processing.core.PApplet.handleDraw(PApplet.java:2301)
at processing.core.PGraphicsJava2D.requestDraw(PGraphicsJava2D.java:243)
at processing.core.PApplet.run(PApplet.java:2141)
at java.lang.Thread.run(Unknown Source)
Version information:
thanks,
kvlinden
------FaceController.java-------------------------------
import javax.swing.JButton;
import javax.swing.JFrame;
public class FaceController extends JFrame {
}
------------FacePanel.java----------------------------------
import processing.core.PApplet;
public class FacePanel extends PApplet {
// Removed all this code and still got the error.
}
The text was updated successfully, but these errors were encountered: