-
-
Save nafg/b51c7a9c1c8022ba3ac5f2a45eb1d62d to your computer and use it in GitHub Desktop.
Binding.scala FXML bug
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
scalaVersion in ThisBuild := "2.11.8" | |
libraryDependencies += "com.thoughtworks.binding" %% "fxml" % "11.0.0-M2" | |
libraryDependencies += "org.scala-lang.modules" % "scala-xml_2.11" % "1.0.6" | |
addCompilerPlugin("org.scalamacros" % "paradise" % "2.1.0" cross CrossVersion.full) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import javafx.application.Application | |
import javafx.scene.Scene | |
import javafx.scene.control._ | |
import javafx.stage._ | |
import com.thoughtworks.binding._ | |
class FxmlSample extends Application { | |
@fxml override def start(primaryStage: Stage): Unit = { | |
val scene: Binding[Scene] = <Scene> | |
<Label>Hello, World!</Label> | |
</Scene> | |
fxml.show(primaryStage, scene) | |
} | |
} | |
object FxmlSample { | |
def main(args: Array[String]): Unit = { | |
Application.launch(classOf[FxmlSample], args: _*) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment