I've found this Java swing code here, that is said to input data into an array using JOptionPane.
The problem is, if I'm not mistaken, that this code just prints out the data iteratively, but there's no array with the data as an output... At least I couldn't print out the 'textfields' array...
The code is here (the last one): How to use JOptionPane to input data into an array
ArrayList.