javafx框架tornadofx实战-舒尔特1

2020-06-05 17:55:16 浏览数 (2)

代码语言:javascript复制
import javafx.animation.AnimationTimer
import javafx.application.Platform
import javafx.geometry.Orientation
import javafx.geometry.Pos
import javafx.scene.control.RadioButton
import javafx.scene.layout.GridPane
import javafx.scene.layout.Priority
import javafx.scene.paint.Color
import tornadofx.*

class MainAPP : App(MainView::class)

class MainView : View("舒尔特") {
    lateinit var r: GridPane
    private val suerte = mutableListOf<String>()
    private val nproperty = intProperty(2)
    private val resultList = mutableListOf<String>()
    private val startTime = longProperty(0)
    private val endTime = longProperty(0)
    private val timeUsed = stringProperty(format(0))
    private val aniTimer = AniTimer()
    private val isRun = booleanProperty(false)
    private val correctResult = mutableListOf<String>()
    private val alphabets = "abcdefghijklmnopqrstuvwxyz"
    private val alphabetS = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
    private val content = stringProperty(alphabets)
    private val originalContent = stringProperty("""
           空山新雨后,天气晚来秋。
          明月松间照,清泉石上流。
          竹喧归浣女,莲动下渔舟。
          随意春芳歇,王孙自可留。""".trimIndent())
    private val types = observableListOf("数字", "小写字母", "大写字母", "静夜思","自定义")
    private val type = stringProperty()
    private val isDIY= booleanProperty(false)
    private val poet_jys = "床前明月光疑是地上霜举头望明月低头思故乡"
    override val root = borderpane {
        center = gridpane {
            r = this
            hgap = 1.0
            vgap = 1.0
            alignment = Pos.CENTER
            prefHeight = 700.0
            prefWidth = 800.0
        }

0 人点赞