controlP5 radioButton errors
in
Contributed Library Questions
•
1 year ago
Hi, I'm having a (minor?) problem with the radioButton controller. Whenever I select a button, i get the set of errors below, with essentially the same set when I do the same in the unedited example code. I don't know enough to tell if this is important, or threatening the stability of my program or anything. Can anyone make some sense of this for me? Is it safe to just ignore? Everything seems to function normally, except for the alarming errors with every press. Thanks!
edit: here is how i'm handling the controller event (done in the same manner as the example code):
- if(theEvent.isFrom(waypointList)) {
- print("got an event from "+theEvent.getName()+"\t");
- println("\t "+theEvent.getValue());
- }
java.lang.NoSuchMethodException: GUI_test.waypoint list(int)
at java.lang.Class.getMethod(Class.java:1605)
at controlP5.RadioButton.controlEvent(Unknown Source)
at controlP5.Controller.broadcast(Unknown Source)
at controlP5.Toggle.setState(Unknown Source)
at controlP5.Toggle.mousePressed(Unknown Source)
at controlP5.Controller.setMousePressed(Unknown Source)
at controlP5.ControllerGroup.setMousePressed(Unknown Source)
at controlP5.ControllerGroup.setMousePressed(Unknown Source)
at controlP5.ControlWindow.mousePressedEvent(Unknown Source)
at controlP5.ControlWindow.mouseEvent(Unknown Source)
at sun.reflect.GeneratedMethodAccessor8.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at processing.core.PApplet$RegisteredMethods.handle(PApplet.java:851)
at processing.core.PApplet.handleMouseEvent(PApplet.java:1771)
at processing.core.PApplet.dequeueMouseEvents(PApplet.java:1725)
at processing.core.PApplet.handleDraw(PApplet.java:1617)
at processing.core.PApplet.run(PApplet.java:1503)
at java.lang.Thread.run(Thread.java:680)
I get (essentially) the same when I run the unaltered example code:
java.lang.NoSuchMethodException: sketch_may05a.radioButton(int)
got an event from radioButton
at java.lang.Class.getMethod(Class.java:1605)
at controlP5.RadioButton.controlEvent(Unknown Source)
at controlP5.Controller.broadcast(Unknown Source)
at controlP5.Toggle.setState(Unknown Source)
at controlP5.Toggle.mousePressed(Unknown Source)
at controlP5.Controller.setMousePressed(Unknown Source)
at controlP5.ControllerGroup.setMousePressed(Unknown Source)
at controlP5.ControllerGroup.setMousePressed(Unknown Source)
at controlP5.ControlWindow.mousePressedEvent(Unknown Source)
at controlP5.ControlWindow.mouseEvent(Unknown Source)
at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at processing.core.PApplet$RegisteredMethods.handle(PApplet.java:851)
at processing.core.PApplet.handleMouseEvent(PApplet.java:1771)
at processing.core.PApplet.dequeueMouseEvents(PApplet.java:1725)
at processing.core.PApplet.handleDraw(PApplet.java:1617)
at processing.core.PApplet.run(PApplet.java:1503)
at java.lang.Thread.run(Thread.java:680)
1