Skip to Main Content

Java SE (Java Platform, Standard Edition)

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!

Binding TextField to a Java Class Variable

952782Nov 23 2012 — edited Nov 23 2012
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?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 21 2012
Added on Nov 23 2012
1 comment
999 views