// 刷新网格 private fun refreshGrid() { timeUsed.set(format(0)) isRun.set(false) resultList.clear() val n = nproperty.value ...
set舒尔特.gifimport javafx.animation.AnimationTimerimport javafx.application.Platformimport javafx.geometry.Orientationimport javafx.geometry.Posimport javafx...
31-replaceWith.gifimport tornadofx.*class MainView31 : View("tornadofx入门31_界面(控件)替换隐藏") { override val root = borderpane { left = vbox(5) { ...
style-class.gifimage.pngclass MyStyle : Stylesheet() { companion object { val leftBox by cssclass()// View中通过 addClass(MyStyle.leftBox) 使用此样式 ...
pagination.gifimport tornadofx.*class MainView18 : View("pagination") { val persions = (1..10).map { "name${it}" }.asObservable() val tbl...
[image.png]import tornadofx.*class MainView13 : View("MainView") { val data = (1..10).map { "${it}_name${it}" }.asObservable() val persio...
a21.gifimport tornadofx.*class Demo1App : App(Demo1View::class)// 视图类,即控件容器,用于放置各种控件class Demo1View : View("Demo1") { // 每个视图都必须重写root变量,hbox(4)为水平......