We are about to switch to a new forum software. Until then we have removed the registration on this forum.
I was successful in making a dialogue window, and having the pop up window allow users to type in input. However I have 2 problems: 1. I need the input the user have me to be stored in array to use later, but I can't seem to figure that out 2. The input type is a number and I know that it needs to be converted.
Help!!! (Thanks in advance)
Answers
I believe you've meant JOptionPane, right?
http://docs.Oracle.com/javase/8/docs/api/javax/swing/JOptionPane.html
This following forum thread got a custom JOptionPane based library:
https://forum.Processing.org/two/discussion/13175/do-whille-is-not-working-how-it-suppose-to
As you can see there, class Inputs got functions for each primitive datatype + String.
For example if you need
int
inputs, you can just call Inputs.readInt().And in order to collect an undefined number of
int
values, IntList is your best bet:https://processing.org/reference/IntList.html