• Post Reply Bookmark Topic Watch Topic
  • New Topic

text field Inputstream reading

 
kieran pattni
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi all..

needs help..how do register InputStreamReader(System.in) to Textfield..so i can get input from a user and use it also..say using simple question and getting a answer..thank you
 
Deyna Cegielski
Ranch Hand
Posts: 60
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
couldnt you use the getText() method of the JTextField component?
String s = textfield.getText();
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!