This post has been de-listed
It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.
Hello, I need some help trying to get multiple JTextField to show in a JOptionPane. The amount of JTextField is not static but rather determine by user input(The first JOptionPane). So, I thought making an array then populating it based on the user input would work, but apparently the way I done it doesn't work. When I ran the code like it is it create a weird error where it would show the code for the text field instead of a blank text field. Tried to adding just the text field with the for loop in the code but it would only show one text field instead of multiple like the user asked for. I was wonder what might be causing this along with how to fix it.
Code: https://pastebin.com/HjyqqZGb
Solved it by using a multi-dimension array and by making the each JTextField a new instead of using the same JTextField
Subreddit
Post Details
- Posted
- 5 years ago
- Reddit URL
- View post on reddit.com
- External URL
- reddit.com/r/javahelp/co...