Taking from Mucaho's Scalatrix example I'd like to send messages from the View (ScalaFX) to the controller
actor, how can I abstract/expose the actor to be able to do this?
object Ops extends App {
override def main(args: Array[String]): Unit = {
new JFXPanel(); // trick: create empty panel to initialize toolkit
new Thread(new Runnable() {
override def run(): Unit = {
View.main(Array[String]())
}
}).start()
val system = ActorSystem("Ops")
val controller = system.actorOf(Props[Controller], "controller")
}
}