amiracam
01/18/2019, 7:46 PMimport 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
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 helpRuckus
01/18/2019, 7:57 PMimport tornadofx.*
.Nicklas Desens
01/19/2019, 7:39 AM