Open GoogleCodeExporter opened 8 years ago
Original comment by jpsacha
on 1 Feb 2013 at 5:13
This issue could not be easily and completely fixed without significant changes
to ScalaFX code base. To make it easier to deal with it I implemented factory
methods for ObjectProperty that simplify the work around (using ObjectProperty
with JavaFX value type)
https://code.google.com/p/scalafx/source/detail?r=bb04f99df3c7ebf13779bc7c3ce4f5
f2a102da5d
The work around is to use a factory method, rather than constructor. The
factory method with create ObjectProperty with correct value type. When using
it, do not specify type of created instance, let the Scala compiler infer it.
For instance, instead of using constructor:
val fillPaint = new ObjectProperty[jfxsp.Paint](Color.LIGHTGRAY)
use factory method:
val fillPaint = ObjectProperty(Color.LIGHTGRAY)
Original comment by jpsacha
on 8 Mar 2013 at 3:15
Original issue reported on code.google.com by
galic...@gmail.com
on 14 Dec 2012 at 4:23Attachments: