ControlP5 error in applet?
in
Contributed Library Questions
•
2 years ago
Hello, I'm having a problem trying to view an applet in Safari. I hope you can help me.
I wrote a little sketch called grid_b that uses the controlP5 library to display a Textlabel. Everything works fine until I try to view my exported applet in the browser because It shows blank. I've already made public every field and function which uses the controlP5 library.
I found this error in my systems' console:
- Exception in thread "Animation Thread" java.lang.NullPointerException
- at sun.awt.SunToolkit.createImage(SunToolkit.java:904)
- at controlP5.ControlP5IOHandler.loadImage(Unknown Source)
- at controlP5.BitFontRenderer.loadFonts(Unknown Source)
- at controlP5.BitFontRenderer.<init>(Unknown Source)
- at controlP5.Label.<init>(Unknown Source)
- at controlP5.Textlabel.<init>(Unknown Source)
- at grid_b$Cell.<init>(grid_b.java:59)
- at grid_b$Grid.<init>(grid_b.java:96)
- at grid_b.setup(grid_b.java:39)
- at processing.core.PApplet.handleDraw(PApplet.java:1583)
- at processing.core.PApplet.run(PApplet.java:1503)
- at java.lang.Thread.run(Thread.java:680)
Thanks!
1