We are about to switch to a new forum software. Until then we have removed the registration on this forum.
Hello everybody ! I would like to know if we can create a link between two programs Processing ? Because i must create a graphical interface for a project. For example, when I click a button of main menu interface, I have access to another interface. Is it possible ? If yes, how ? Thank for help ! :) (sorry for my bad english).
Answers
What you should do is combine them and write it as a single program that uses state variables to track which part of the program is being rendered. I recently wrote an example that shows how to do this, which you can find here:
http://forum.processing.org/two/discussion/comment/13590#Comment_13590
Ok but it's possible with a more complex program without a problems ?
You could create a second window with JFrame and have all your GUI there.
here is a code, where I create a scond window with JFrame and control P5 https://github.com/ThomasLengeling/basicProcessing
a little more information about it here http://codigogenerativo.com/basic-configuration-processing/
Or you can make two seperate sketches and have them comunicate via OSC
thomas