Coming soon - Get a detailed view of why an account is flagged as spam!
view details

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.

1
Help with multiple JTextField not showing in a form
Post Flair (click to view more posts with a particular flair)
Post Body

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

Author
Account Strength
80%
Account Age
6 years
Verified Email
Yes
Verified Flair
No
Total Karma
80
Link Karma
28
Comment Karma
52
Profile updated: 1 week ago
Posts updated: 1 month ago

Subreddit

Post Details

We try to extract some basic information from the post title. This is not always successful or accurate, please use your best judgement and compare these values to the post title and body for confirmation.
Posted
5 years ago