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)
Hello everyone. I've searched about this before but had no luck. I hope you can help me.
I'm using a selection box to start capturing video with a camera but I'd like to be able to stop it and choose a different one (in case the user requires it) but when I use Capture::stop it only stops capturing, it doesn't stop the camera. It seems to stay attached so, if I select a different device, it gives me an error which I guess is related to this situation.
How can I stop the camera so I can start a new capture with a different device during runtime? Do I need to destroy my first Capture instance and create a new one (or something around those lines)?