最佳答案
我们可以为此目的使用 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)
}
}
关于swift - 如何为 macOS 创建 float 搜索框,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44421016/