• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to get value of textfield?

 
Ryan flech
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello

i have some textfield in my stage. so i want to get values from textfilds.will you help me please?

my Controller file :



my Fxml File ::


 
Ranganathan Kaliyur Mannar
Bartender
Posts: 1103
10
Java Netbeans IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Ryan,
Welcome to the Ranch!

You can use the 'getText()' method to get the value in the text field. Your FXML does mention the 'fx:id' which is the variable name, but, I don't see it declared in the controller file.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic