I'm trying to get the example code (HelloScalaFX) on http://www.scalafx.org/ to run. However, the line
fill <== when (hover) choose Color.Green
otherwise Color.Red
give me the error
overloaded method value <== with alternatives: (v:
scalafx.beans.value.ObservableValue[_ <:
javafx.scene.paint.Paint, _ <: javafx.scene.paint.Paint])Unit <and> (v:
javafx.beans.value.ObservableValue[_ <: javafx.scene.paint.Paint])Unit cannot be applied to
(scalafx.Includes.ObjectConditionBuilder[javafx.scene.paint.Color])
If I delete the offending lines, I get no compile errors, but running it gives:
Error: Could not find or load main class HelloStageDemo
How do I resolve the overloading and get this to work?
OSX 10.11.5
JavaSE-1.8
Scala IDE build of Eclipse SDK (4.3.0)
Scala Library container 2.11.8
scalafx_2.12.0-M4-8.0.92-R10.jar
Thanks, Dave