How to force a PApplet to redraw itself?
in
Integration and Hardware
•
1 month ago
Hi, Guys. I have another question here.
In a java project, I embedded a PApplet in a JPanel. Everything work well, but I want to change the things I draw on the PApplet when I change a Jslider, It does not redraw itself. Strangly when I change the size of the JPanel, it redraw itself.
I use noloop() in my setup(). But I called draw() methode after I make changes.
I also tried to call repain() methode of the PApplet, it see does not work too.
In a java project, I embedded a PApplet in a JPanel. Everything work well, but I want to change the things I draw on the PApplet when I change a Jslider, It does not redraw itself. Strangly when I change the size of the JPanel, it redraw itself.
I use noloop() in my setup(). But I called draw() methode after I make changes.
I also tried to call repain() methode of the PApplet, it see does not work too.
1