答案 0 :(得分:-1)
我们可以将ScalaFX用于此目的
object Main extends JFXApp {
val resource = getClass.getResource("/box.fxml")
val root = FXMLView(resource, new GuiceDependencyResolver())
stage = new PrimaryStage() {
initStyle(StageStyle.Undecorated) // this option removes the default header
title = "Cats"
scene = new Scene(root)
}
}