This discussion is archived
1 Reply Latest reply: Nov 23, 2012 4:32 AM by alabala_kiril RSS

Binding TextField to a Java Class Variable

952782 Newbie
Currently Being Moderated
Although this seems easy, I am having trouble doing this. I am trying to bind a Textfield to a Java 'String' Variable. I do not know how to go about this.

I did try Bindings.biDirectional( txtFieldProperty() , stringProperty() )

But the parameters in the method are 'StringProperty' typewhereas I want to bind the Textfield to a String Variable.

How do I go about this?

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points