943,815 Members | Top Members by Rank

Ad:
  • Java Discussion Thread
  • Marked Solved
  • Views: 1756
  • Java RSS
Jul 21st, 2005
0

textFields help

Expand Post »
Im pretty new to java and I have created a couple simple programs... and I was just wandering how exactly to use textFields and textAreas. I have created a textfield before, but I need a simple textField that works like the windows prompt. I just want a textField that will prompt the user for certain data and then return data. I already have the program, I just need to find out how to make it execute in a textField.
Thanks for any help....
Similar Threads
Reputation Points: 1315
Solved Threads: 10
Banned
joshSCH is offline Offline
4,845 posts
since Jul 2005
Jul 21st, 2005
1

Re: textFields help

I don't think you want JTextFields. Look up JOptionPanes. They give you many options to get input from the user via an input box.
Reputation Points: 113
Solved Threads: 19
Postaholic
server_crash is offline Offline
2,108 posts
since Jun 2004
Jul 21st, 2005
0

Re: textFields help

oh ok, no wonder why I....

thanks
Reputation Points: 1315
Solved Threads: 10
Banned
joshSCH is offline Offline
4,845 posts
since Jul 2005
Jul 22nd, 2005
0

Re: textFields help

is there anything else that would be like the command prompt, but just a text box instead? I need something that takes more than 3 or 4 strings from the user, and the JOptionPane doesnt seem to work well with it.
Reputation Points: 1315
Solved Threads: 10
Banned
joshSCH is offline Offline
4,845 posts
since Jul 2005
Jul 22nd, 2005
1

Re: textFields help

JDialog. It will be just like creating a JFrame, but it's a dialog. A bit more complex, but it will do the job.
Reputation Points: 113
Solved Threads: 19
Postaholic
server_crash is offline Offline
2,108 posts
since Jun 2004

This thread is solved

Either the thread starter or a moderator has marked this thread as solved. You can most likely trust the responses and answers given. There is most likely no reason for any further responses to be posted here. If you have a related question, please start a new thread in this forum instead.

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Java Forum Timeline: Java multiple text file saving
Next Thread in Java Forum Timeline: Pictures





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC