hi newbie here, this most simplest of code snippet...
# tornadofx
a
hi newbie here, this most simplest of code snippets doesn’t work:
Copy code
import tornadofx.View
import tornadofx.button
import tornadofx.label

/**
 * Created by charles  on 2019-01-18.
 */
class MyView: View() {

    override val root: vbox {
        button("Press me")
        label("Waiting")
    }

}
IDEA claims it can’t find vbox I’m on jdk1.8.0_131 here’s my gradle build
Copy code
plugins {
    id "org.jetbrains.kotlin.jvm" version "1.3.11"
}

group 'polyglotric'
version '1.0-SNAPSHOT'

apply plugin: 'kotlin'
apply plugin: 'application'

mainClassName = 'com.polyglotric.MyApp'

dependencies {
    compile 'org.jetbrains.kotlin:kotlin-stdlib'
    compile 'org.jetbrains.kotlin:kotlin-stdlib-jdk8'
    compile group: 'no.tornado', name: 'tornadofx', version: '1.7.18'
}
repositories {
    mavenCentral()
}

task wrapper(type: Wrapper) {
    gradleVersion = '4.2.1'
}

compileKotlin {
    kotlinOptions {
        jvmTarget = '1.8'
    }
}
thanks for the help
r
A good rule of thumb is to always just do
import tornadofx.*
.
n
Root = vbox // Not :