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!

ComboBox and bidirectional binding

987995Apr 14 2013 — edited Nov 7 2013
Hi,

I implement a ComboBox where I load an ArrayList of Enums into it by using

this.getItems().addAll(getMYEnumEntries());

Within the enum I override the toString method, so all the items are displayed correct in my ComboBox .

My problem is, that I use JavaFX bidirectional binding ... and I find now snippet how to use it correct.

* My first question is...to which property must I bind the bean to the combobox that I get informed aboud a change of the value?

* My second questiion is...how must I implement the my Property Binding Class ?? Can I use the SimpleObjectProperty and override getValue() ... setValue() ?

best regards
wolfgang

Edited by: wschele on 14.04.2013 00:28
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 5 2013
Added on Apr 14 2013
3 comments
2,783 views