Gabriel95 / scalafx

Automatically exported from code.google.com/p/scalafx
Other
0 stars 0 forks source link

Make JFXApp a trait, fix initialization of subclasses. #124

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
JFXApp does not do a particularly good job of implementing the DelayedInit 
trait. See 
http://stackoverflow.com/questions/22468787/base-class-constructor-not-being-cal
led-in-jfxapp for one example.

I think we need to change JFXApp to itself be a trait (so that its own 
initialization is not passed to delayedInit(), and so that it can queue-up 
sub-class initialization code in its overridden delayedInit() for sub-classes 
then dispatch them in main(). See the implementation of scala.App for a good 
example.

Original issue reported on code.google.com by mike@hindsight-consulting.com on 19 Mar 2014 at 4:08

GoogleCodeExporter commented 8 years ago
This issue was closed by revision 8faea4312ec7.

Original comment by mike@hindsight-consulting.com on 19 Mar 2014 at 12:59