We are about to switch to a new forum software. Until then we have removed the registration on this forum.
I have a screen that contains the values that are changed continuously by the users, these values (not all) should be seen on a second screen. does anyone know how to do? sorry but I'm new with processing ..
Answers
Did you search the website : I did and got these results one of these might help.
I tried, but no one knows how to pass variables from one screen to another .... maybe I did not understand I
There are two possibilities
1) A single application that has two windows (and display each window on a separate screen)
2) Two applications each with a single window (and each window displayed on a separate screen.
Is it a desktop application or web application?
What sort of data is being changed, how much and how frequently?
its a desktop application, i have 20 labels with int and doubles that chaning every seconds or milisecons
I am assuming that the desktop application -
(a) has been created by you
(b) is using a single window for its output
Is this correct?
You are going to have to provide more detailed information if you want any chance of getting an answer.
thanks for you help! So I did a program in which I enter a lot of data in the first screen; on the second screen I have to see some of these data, not all. then how do I pass data from a window to the other windows ?? or if you have any idea ??, on the second screen or window do not have to do anything, you should just be able to read.. sorry guys for my bad english
The following code creates an application that has two windows. If you enter your name in the main window it will be duplicated in the second window. This uses the G4P library.
o.o thankssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss :D
We can also instantiate more than 1 PApplet w/o using any 3rd-party libraries!
Here's some template that uses 1 main() initializer for 2 PApplet nested classes called MyApp & MyFrame:
As long they're declared
public static
&extends
PApplet, that main() method gonna find them!But watch out that any classes which aren't a PApplet be not declared as
public
though! (~~)Notice that each 1 can have their own setup(), draw() and other regular Processing's callbacks.
And we can declare "global" field variables on the top, which any of those nested class can share access to! *-:)
hello, seems a bit old post. I was trying this code but there not any PApplet that open with processing 3. Is it possible to find an update of this undocumented technique ?
ok I find it myself. but I don't understand why from version 2 you put
java
and in processing 3 I had to remove the "-2"
in order to enter in the loop
for those who search the updated version for processing3