https://kotlinlang.org logo
Docs
Join the conversationJoin Slack
Channels
100daysofcode
100daysofkotlin
100daysofkotlin-2021
advent-of-code
aem
ai
alexa
algeria
algolialibraries
amsterdam
android
android-architecture
android-databinding
android-studio
androidgithubprojects
androidthings
androidx
androidx-xprocessing
anime
anko
announcements
apollo-kotlin
appintro
arabic
argentina
arkenv
arksemdevteam
armenia
arrow
arrow-contributors
arrow-meta
ass
atlanta
atm17
atrium
austin
australia
austria
awesome-kotlin
ballast
bangladesh
barcelona
bayarea
bazel
beepiz-libraries
belgium
berlin
big-data
books
boston
brazil
brikk
budapest
build
build-tools
bulgaria
bydgoszcz
cambodia
canada
carrat
carrat-dev
carrat-feed
chicago
chile
china
chucker
cincinnati-user-group
cli
clikt
cloudfoundry
cn
cobalt
code-coverage
codeforces
codemash-precompiler
codereview
codingame
codingconventions
coimbatore
collaborations
colombia
colorado
communities
competitive-programming
competitivecoding
compiler
compose
compose-android
compose-desktop
compose-hiring
compose-ios
compose-mp
compose-ui-showcase
compose-wear
compose-web
connect-audit-events
corda
cork
coroutines
couchbase
coursera
croatia
cryptography
cscenter-course-2016
cucumber-bdd
cyprus
czech
dagger
data2viz
databinding
datascience
dckotlin
debugging
decompose
decouple
denmark
deprecated
detekt
detekt-hint
dev-core
dfw
docs-revamped
dokka
domain-driven-design
doodle
dsl
dublin
dutch
eap
eclipse
ecuador
edinburgh
education
effective-kotlin
effectivekotlin
emacs
embedded-kotlin
estatik
event21-community-content
events
exposed
failgood
fb-internal-demo
feed
firebase
flow
fluid-libraries
forkhandles
forum
fosdem
fp-in-kotlin
framework-elide
freenode
french
fritz2
fuchsia
functional
funktionale
gamedev
ge-kotlin
general-advice
georgia
geospatial
german-lang
getting-started
github-workflows-kt
glance
godot-kotlin
google-io
gradle
graphic
graphkool
graphql
graphql-kotlin
graviton-browser
greece
grpc
gsoc
gui
hackathons
hacktoberfest
hamburg
hamkrest
helios
helsinki
hexagon
hibernate
hikari-cp
hire-me
hiring
hongkong
hoplite
http4k
hungary
hyderabad
image-processing
india
indonesia
inkremental
intellij
intellij-plugins
intellij-tricks
internships
introduce-yourself
io
ios
iran
israel
istanbulcoders
italian
jackson-kotlin
jadx
japanese
jasync-sql
java-to-kotlin-refactoring
javadevelopers
javafx
javalin
javascript
jdbi
jhipster-kotlin
jobsworldwide
jpa
jshdq
juul-libraries
jvm-ir-backend-feedback
jxadapter
k2-early-adopters
kaal
kafka
kakao
kalasim
kapt
karachi
karg
karlsruhe
kash_shell
kaskade
kbuild
kdbc
kgen-doc-tools
kgraphql
kinta
klaxon
klock
kloudformation
kmdc
kmm-español
kmongo
knbt
knote
koalaql
koans
kobalt
kobweb
kodein
kodex
kohesive
koin
koin-dev
komapper
kondor-json
kong
kontent
kontributors
korau
korean
korge
korim
korio
korlibs
korte
kotest
kotest-contributors
kotless
kotlick
kotlin-asia
kotlin-beam
kotlin-by-example
kotlin-csv
kotlin-data-storage
kotlin-foundation
kotlin-fuel
kotlin-in-action
kotlin-inject
kotlin-latam
kotlin-logging
kotlin-multiplatform-contest
kotlin-mumbai
kotlin-native
kotlin-pakistan
kotlin-plugin
kotlin-pune
kotlin-roadmap
kotlin-samples
kotlin-sap
kotlin-serbia
kotlin-spark
kotlin-szeged
kotlin-website
kotlinacademy
kotlinbot
kotlinconf
kotlindl
kotlinforbeginners
kotlingforbeginners
kotlinlondon
kotlinmad
kotlinprogrammers
kotlinsu
kotlintest
kotlintest-devs
kotlintlv
kotlinultimatechallenge
kotlinx-datetime
kotlinx-files
kotlinx-html
kotrix
kotson
kovenant
kprompt
kraph
krawler
kroto-plus
ksp
ktcc
ktfmt
ktlint
ktor
ktp
kubed
kug-leads
kug-torino
kvision
kweb
lambdaworld_cadiz
lanark
language-evolution
language-proposals
latvia
leakcanary
leedskotlinusergroup
lets-have-fun
libgdx
libkgd
library-development
linkeddata
lithuania
london
losangeles
lottie
love
lychee
macedonia
machinelearningbawas
madrid
malaysia
mathematics
meetkotlin
memes
meta
metro-detroit
mexico
miami
micronaut
minnesota
minutest
mirror
mockk
moko
moldova
monsterpuzzle
montreal
moonbean
morocco
motionlayout
mpapt
mu
multiplatform
mumbai
munich
mvikotlin
mvrx
myndocs-oauth2-server
naming
navigation-architecture-component
nepal
new-mexico
new-zealand
newname
nigeria
nodejs
norway
npm-publish
nyc
oceania
ohio-kotlin-users
oldenburg
oolong
opensource
orbit-mvi
osgi
otpisani
package-search
pakistan
panamá
pattern-matching
pbandk
pdx
peru
philippines
phoenix
pinoy
pocketgitclient
polish
popkorn
portugal
practical-functional-programming
proguard
prozis-android-backup
pyhsikal
python
python-contributors
quasar
random
re
react
reaktive
realm
realworldkotlin
reductor
reduks
redux
redux-kotlin
refactoring-to-kotlin
reflect
refreshversions
reports
result
rethink
revolver
rhein-main
rocksdb
romania
room
rpi-pico
rsocket
russian
russian_feed
russian-kotlinasfirst
rx
rxjava
san-diego
science
scotland
scrcast
scrimage
script
scripting
seattle
serialization
server
sg-user-group
singapore
skia-wasm-interop-temp
skrape-it
slovak
snake
sofl-user-group
southafrica
spacemacs
spain
spanish
speaking
spek
spin
splitties
spotify-mobius
spring
spring-security
squarelibraries
stackoverflow
stacks
stayhungrystayfoolish
stdlib
stlouis
strife-discord-lib
strikt
students
stuttgart
sudan
swagger-gradle-codegen
swarm
sweden
swing
swiss-user-group
switzerland
talking-kotlin
tallinn
tampa
teamcity
tegal
tempe
tensorflow
terminal
test
testing
testtestest
texas
tgbotapi
thailand
tornadofx
touchlab-tools
training
tricity-kotlin-user-group
trójmiasto
truth
tunisia
turkey
turkiye
twitter-feed
uae
udacityindia
uk
ukrainian
uniflow
unkonf
uruguay
utah
uuid
vancouver
vankotlin
vertx
videos
vienna
vietnam
vim
vkug
vuejs
web-mpp
webassembly
webrtc
wimix_sentry
wwdc
zircon
Powered by Linen
tornadofx
  • a

    amanda.hinchman-dominguez

    11/13/2018, 8:02 PM
    always love how working with git takes more time. Now it's set up, I can keep running through these tests 🙂
    c
    • 2
    • 2
  • e

    edvin

    11/14/2018, 8:16 PM
    @gtnarg An easy solution would be to create a validator manually and simply check the condition and only requires a value if the condition is met
    g
    • 2
    • 6
  • e

    edvin

    11/14/2018, 8:36 PM
    @abhinay I'm trying to run the jdk10 branch but I'm getting "Error: JavaFX runtime components are missing, and are required to run this application" when I try to run some of the test applications - do I have to add
    add-module=
    manually?
    a
    • 2
    • 3
  • e

    edvin

    11/16/2018, 9:19 AM
    @carldea We have a "jdk10" branch, which now actually targets jdk11. We won't rename the branch though, but the plan is to make what we now call jdk10 the new master, and create a jdk8 branch to keep track of the jdk8 compatible version of TornadoFX. The jdk11 compatible version will be versioned as 2.0. I don't think there is any point of migration via j9, we have to account for the same issues with the module system anyways. We will not be using the unnamed module. Language features is not an issue at all, since we're writing all the code in Kotlin 🙂
    c
    • 2
    • 2
  • m

    mikehearn

    11/16/2018, 4:39 PM
    or you could help me with Graviton 🙂
    👍 1
    l
    • 2
    • 3
  • a

    alex

    11/16/2018, 9:05 PM
    @edvin I've encountered the same issue with "Error: Could not find or load main class" while using multimaven project. I'll attach video as reply.
    e
    • 2
    • 5
  • c

    carlw

    11/16/2018, 9:49 PM
    Ran a JavaFX program on this without issue https://aws.amazon.com/corretto/
    👍 3
    v
    • 2
    • 1
  • e

    edvin

    11/16/2018, 10:18 PM
    Java 8 will be around forever 🙂 hehe
    😃 2
    g
    v
    • 3
    • 3
  • e

    edvin

    11/17/2018, 12:39 PM
    Spending the weekend building a SolidWorks plugin in C#. How I miss TornadoFX.. 🙂
    l
    • 2
    • 5
  • e

    edvin

    11/17/2018, 3:26 PM
    TornadoFX has built in support for i18n through resource bundles: https://github.com/edvin/tornadofx/wiki/i18n
    ❤️ 4
    l
    • 2
    • 4
  • s

    sp33dy

    11/18/2018, 5:12 PM
    CARL <=== idiot
    s
    • 2
    • 1
  • a

    alex

    11/19/2018, 8:19 PM
    Offtopic: is anyone familiar with JNA? Do you need to free memory after? Like
    val ptr = PointerByReference()
    winapi_call(ptr)
    // utilize ptr value
    free(ptr) // ???
    l
    • 2
    • 2
  • c

    carlw

    11/19/2018, 9:43 PM
    @alex I haven't done JNI in a while but you had to free up memory since you were out from under the JVM's memory management.
    a
    • 2
    • 5
  • h

    Hamza

    11/20/2018, 4:52 AM
    how can i update a progress bar while doing some async stuff? running the piece of code attached, the ui block is only ran once, and only at the very end instead of after each time the image is generated. i have added printout statements inside the async thread and it prints out every time for each image (in the for loop) but the ui thread is only called once
    -.kt
    a
    g
    a
    • 4
    • 13
  • r

    Romanow

    11/20/2018, 11:19 AM
    hey @edvin any idea when the new tornado version will support kotlin 1.3.x? 🙂
    j
    e
    • 3
    • 2
  • a

    alex

    11/20/2018, 3:27 PM
    Another offtopic: is there a function/plugin for IDEA to sort methods/inner classes/enums alphabetically, like Eclipse's sort methods?
    t
    s
    • 3
    • 9
  • c

    carlw

    11/20/2018, 5:47 PM
    In plain JavaFX, I use a properties file with values that can be overridden by -D options. TornadoFX has a config file subsystem that should cover most cases https://github.com/edvin/tornadofx-guide/blob/master/part2/Config%20Settings%20and%20State.md
    a
    • 2
    • 1
  • i

    iari

    11/20/2018, 7:46 PM
    For anyone interested in general AI I'd like to share a Blog Post : https://medium.com/@deepmindsafetyresearch/scalable-agent-alignment-via-reward-modeling-bf4ab06dfd84?fbclid=IwAR1rXKOleUvVpwFzr1t98exCMn0lliqiUqUrWkMzNY_JTov5rV9xUiHkJ5M (I know it's unrelated to TornadoFX/Kotlin ... but I felt it might still be interesting, for someone.)
    v
    • 2
    • 1
  • c

    camdenorrb

    11/20/2018, 7:55 PM
    What's the best way to bind a color to the background of a view?
    r
    • 2
    • 20
  • c

    camdenorrb

    11/20/2018, 8:05 PM
    Is binding CSS properties in general possible?
    r
    • 2
    • 1
  • r

    Ruckus

    11/20/2018, 8:30 PM
    @camdenorrb Here's the code for the binding I mentioned. It should work as expected, but I haven't tested it thoroughly. One caveat is that you can't use
    property1.unbindBidirectional(property2)
    , so you instead have to call
    unbind()
    on the returned binding. (This is due to private constructors in JavaFX and can't be worked around)
    ConverterBinding.kt
    • 1
    • 1
  • e

    edvin

    11/20/2018, 8:33 PM
    Use a model and inject in both views to avoid having hard link between the views, and no need for that pesky
    singleAssign
    . I also made sure the show/hide buttons are only visible when they make sense 🙂
    🔝 1
    g
    • 2
    • 1
  • a

    alex

    11/21/2018, 1:47 PM
    @edvin as far as I remember, OSGi has quite a few flaws, and some of them (like broken lifecycle or dependency management not working in complex cases) are beyond repair capabilities. Is this technology still used for the new software?
    c
    e
    • 3
    • 6
  • e

    edvin

    11/21/2018, 3:01 PM
    @thomasnield I'm doing an SQLite based project and wanted to check what JDBC driver you're using - is it the Xerial one?
    a
    d
    • 3
    • 9
  • a

    alex

    11/21/2018, 4:17 PM
    How can you add Nodes to the VIew/Fragment dynamically?
    it.root.getChildList()?.add(Label("Test"))
    seems to work (in console output with println), but I do not observe any changes
    • 1
    • 1
  • n

    Nikky

    11/22/2018, 3:25 AM
    so i noticed that my javafx app is not closing.. do i need to kill as things i started with runAsync ?
    a
    • 2
    • 1
  • c

    carlw

    11/22/2018, 1:09 PM
    I think we're headed for a Linux-like fragmentation. There's AdoptOpenJDK, Corretto, and Zulu's Azul to choose from for example. I myself am building my own distro that includes OpenJFX. I had hoped the Amazon one would work instead but was getting a glib DLL linker error.
    a
    • 2
    • 1
  • c

    carlw

    11/22/2018, 1:09 PM
    Maybe things will open up with 11 but I have a customer still on 8
    r
    • 2
    • 1
  • g

    gtnarg

    11/22/2018, 2:24 PM
    @edvin I'm trying to debug some odd behaviour in an
    ListCellFragment
    . I commented out the
    cellFragment{...}
    call on the ListView and reran the app to see what shows up in the listview. If I debug the layout I still see a bunch of installed `SmartListCell`s. What would be installing these in the ListView?
    e
    • 2
    • 10
  • a

    alex

    11/22/2018, 3:37 PM
    Guys, can anyone give me some tips about yesterday question about animation? I understand that you can animate the nodes, but what about Stage object? Is that common practice? Or should I just make stage styling transparent and work with the node instead?
    c
    • 2
    • 1
Powered by Linen
Title
a

alex

11/22/2018, 3:37 PM
Guys, can anyone give me some tips about yesterday question about animation? I understand that you can animate the nodes, but what about Stage object? Is that common practice? Or should I just make stage styling transparent and work with the node instead?
c

carldea

11/22/2018, 6:47 PM
Check out this stackOverflow for ideas: https://stackoverflow.com/questions/37472448/javafx-bind-stage-size-to-the-root-nodes-preferred-size
View count: 1