Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

getText() method of JTextField returning an emty string  RSS feed

 
Femi Ojambati
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I tried to use the getText() of the JTextField to return the text typed in the the textfield but it is returning an empty String. The textfield is added to a Dialog box. Please I like to know why this is so, and what can I do?
 
Norm Radder
Ranch Foreman
Posts: 2240
28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Without seeing your code, there is no way to tell what is wrong.
How does a Dialog get executed in a servlet?
 
Michael Dunn
Ranch Hand
Posts: 4632
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
make the dialog modal
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!