Open GoogleCodeExporter opened 8 years ago
This same problem also affects the SimpleColorfulCircles demo.
In both demos, the stage is initialized to be an 800x600 rectangle. Within the
scene definition, both demos also then create one or more Rectangles using
their Scene's dimensions, with statements such as:
width <== scene.width
height <== scene.height
Since these statements are used within the Scene's definition, I think its
possible that the scene has yet to be constructed and, hence, has no values for
these fields. In turn, this causes JavaFX to recursively search for the value
until the stack exception occurs.
In any case, the bug can be resolved by storing the stage width and height as
regular vals, then initializing the corresponding fields to those values, as in
the attached versions of the demo sources.
Original comment by mike@hindsight-consulting.com
on 31 Jul 2013 at 9:37
Attachments:
Original comment by jpsacha
on 2 Aug 2013 at 2:45
Original comment by jpsacha
on 27 Aug 2013 at 2:05
Original comment by jpsacha
on 31 Aug 2013 at 2:53
ColorfulCircles
and SimpleColorfulCircles
demos fail
Original issue reported on code.google.com by
jpsacha
on 31 Jul 2013 at 2:49