run processing, save file and don't exit
in
Programming Questions
•
5 months ago
hello everyone
i am working on some java application.
First it runs some GUI and then if button is pushed it runs processing
- class Gui{
- //creating some gui
- picture = new TextManipulation();
- picture.backgroundG = green;
- picture.backgroundR = red;
- picture.backgroundB = blue;
- picture.picturePath = path.getText();
- picture.text = text.getText();
- picture.runSketch(new String[] { "--present", "textManipulation.TextManipulation" }, null);
- return null;
- }
- }
- public class TextManipulation extends PApplet {
- static String picturePath = "";
- static String text = "";
- static float backgroundR = 0;
- static float backgroundG = 0;
- static float backgroundB = 0;
- public void setup() {
- }
- public void draw() {
- //do something with image
- PImage file = get();
- file.save(output);
- exit();
- }
- }
When i call exit, program exits with GUI, but i don't want that. i want my gui still running so people can change some parameters and make another picture in processing.
Can anyone help me?
1