Open Source JavaFX Now!
Combination View Flat View Tree View
Threads [ Previous | Next ]
Chapter 1 Audio Configuration OS X Binding Issues
toggle
Hi there

I am new to JavaFX and trying to learn it using your samples. I am working with Eclipse, the Java Fx Plugin and Java 1.6 on a Mac with OS X 10.6.

The first two samples worked fine. When starting the Audio Configuration out of my Eclipse, the change of a genre does not change the decibel value. It seems that there is something wrong with the binding. I am using your source code and i am running the example as desktop application.

If I launch the Sample from the JFXtras Page via Web Start, the binding works.

Does anyone have an idea ?

Kind regards,

Roland
Flag Flag
Make sure that you are running the latest version of JavaFX (1.2.1). The essential bind statements that the program needs to work are these two (in AudioConfigMain):
Text {
content: bind "{%1.0f acModel.selectedDecibels} dB"
},
Slider {
value: bind acModel.selectedDecibels with inverse
},

The "with inverse" is crucial, because that is what pushes the value when you drag the slider.
Flag Flag