Skip to Main Content

New to Java

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

gettext() to get text from JTextField

807601May 11 2008 — edited May 11 2008
I am facing problem to get text from JTextFiled using gettext() method. I use a blank textfield & then user enters data. I am trying to retreive data in to a String type
variable like String s=textfield.gettext(). But it does not do. But if textfield is already initialized, it gets data. How can I overcome this ?rpblem.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 8 2008
Added on May 11 2008
4 comments
744 views