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
  • l

    LastExceed

    01/20/2020, 6:05 PM
    is it possible to achieve native look and feel with tornadofx ? if yes, how?
    a
    r
    +1
    38 replies · 4 participants
  • m

    mariofelesdossantosjr

    01/20/2020, 9:05 PM
    Hello, it is possible to collect layout events by logger, for application telemetry, with tornadoFX?
    b
    10 replies · 2 participants
  • m

    matthjes

    01/22/2020, 6:32 PM
    Hi. Is there a more "elegant" way to set the item / itemProperty of a view model manually besided using
    itemProperty.value = <item>
    ?
    r
    s
    3 replies · 3 participants
  • m

    matthjes

    01/24/2020, 2:20 PM
    After building my scene hierarchy with
    override val root = borderpane { ... }
    , how can I set the focus to a specific widget inside this hierarchy? Currently I have a TreeView and a TextArea somewhere nested inside
    root
    and when the application starts the TreeView always has the focus. However, I'd like to have the TextArea having the focus.
    a
    6 replies · 2 participants
  • l

    LastExceed

    01/25/2020, 8:54 AM
    I have a view, and i have a tcp connection. i want to update the view when receiving data from the connection but without the view ever becoming unresponsive. i thought all i need to do is use a separate thread for the networking stuff, if i try to update the view (specically, adding an element to an observable list) i get an
    IllegalStateException: Not on FX application thread
    . How do I deal with this? also why does it only happen when the list isn't empty ?
    m
    a
    7 replies · 3 participants
  • y

    Yardenavirav

    01/26/2020, 9:14 PM
    Hi, what should be the conventional way to truncate the empty part of the chart? like below. I tried to play with invalidateRange but it didn't seemed to affect and i'm not sure if there is something simpler. Thanks
    a
    2 replies · 2 participants
  • h

    Hullaballoonatic

    01/27/2020, 12:39 AM
    java.scene.paint.color
    is really annoying to work with. it'd be nice if you could do things like:
    val myColor = Color(0.5, 0.5, 0.5)
    myColor.saturation += 0.5
    myColor.opacity *= 0.3
    etc, but nope!
    a
    5 replies · 2 participants
  • c

    carlw

    01/28/2020, 2:37 PM
    If anyone was considering Qt for cross-platform. There have been some changes. IMO, they've had increasing sales but need a net profit at this point. The last annual report has them at -2.5 million euros (net profit). https://www.qt.io/blog/qt-offering-changes-2020 Seems similar to Oracle but I don't know if there are going to be OpenQt spinoffs
    a
    r
    +2
    10 replies · 5 participants
  • t

    Thomas Mao

    02/02/2020, 11:05 PM
    hi, how can I find some document or sample for access SQLite from within TornadoFX? Thanks
    c
    c
    +1
    5 replies · 4 participants
  • c

    Carlton Whitehead

    02/11/2020, 3:22 PM
    Is there a way, short of creating a new
    Scope
    , to obtain a new instance of a
    Wizard
    each time? I'm finding it a bit clunky and error-prone to build out the
    Wizard
    such that it expects a
    Scope
    with its dependencies graph prepared. Making the `Wizard`'s
    scope
    know about all the wizard pages dependencies, those pages dependencies' dependencies, and so on is what makes it feel clunky to me. Is there a way
    find()
    and
    inject()
    could act as a factory instead of as a singleton lookup? I feel like that would really simplify this. Is that possible?
    r
    6 replies · 2 participants
  • e

    Evan R.

    02/13/2020, 8:30 PM
    Hey all, for a personal project I implemented a
    SuspendingView
    class which allows you to invoke a
    suspendingAction { }
    block as a coroutine replacement for
    asyncAction { }
    (i.e. the block gives you a CoroutineScope for invoking suspending functions). It also auto-cancels launched coroutines if the view is undocked. Is this something anyone else would be interested in? If so, what’s the best way to contribute this back to the TornadoFX project? Here’s the current implementation in my project: https://github.com/emanguy/GitlabTimeTracker/blob/master/src/main/kotlin/ui/util/SuspendingView.kt And here’s somewhere I use it to call suspending functions: https://github.com/emanguy/GitlabTimeTracker/blob/master/src/main/kotlin/ui/view/LoginView.kt#L33
    👍 1
    ❤️ 1
    c
    r
    3 replies · 3 participants
  • m

    mariofelesdossantosjr

    02/14/2020, 5:27 PM
    Tornadofx contains Lazy loading gridpane, or other component?
    e
    1 reply · 2 participants
  • m

    Max

    02/20/2020, 2:03 PM
    Are there any Javafx skins that works for jdk 12+? Was excited to use https://github.com/jfoenixadmin/JFoenix/ but then we saw that it wasnt working for newer java jdks 😞
    j
    3 replies · 2 participants
  • a

    azeDevs

    03/05/2020, 11:52 PM
    Is there a way to get TornadoFX to render transparently, so that something like OBS can capture it onto a stream without keying out a color?
    r
    1 reply · 2 participants
  • c

    carlw

    03/07/2020, 12:57 AM
    this isn't tornadofx, but it's javafx + netty http://bekwam.blogspot.com/2016/03/a-javafx-netty-websocket-client.html
    s
    1 reply · 2 participants
  • m

    matthjes

    03/10/2020, 8:23 PM
    Hi, What would be the best or recommended way for the communication between different ViewModels? Imagine having a text field, a table and a text area. When I enter some name into the text field and press enter, a new file with this name should be created, added to the list, and used by the text area to compose the text, which is automatically saved in the background whenever the user stops typing. Also, when a file is selected in the table its name should be inserted into the text field and the user can edit the file via the text area. Currently I have three ViewModels, one for each component. Table and text area communicate via a shared ViewModel, similar to the example shown in the tornadofx guide. But I'm not sure how to communicate e.g. the creation of a file to the other components. I was also thinking about using the event bus as this is something that I can wrap my head around. Another possibility is to use only a single ViewModel for all views. Any best practice tips for this?
    e
    1 reply · 2 participants
  • p

    PandaH.

    03/17/2020, 11:01 AM
    so im using javafx in a mixed java/kotlin project, and im using relative paths for the images. when i use gradlew run, everything shows up as expected, but when i package it into a .jar file, the image doesnt show up. i guess the relative paths get messed up when packaging it into a .jar? im not sure how to fix that
    m
    20 replies · 2 participants
  • g

    geepawhill

    03/18/2020, 1:40 PM
    I have a bunch of javafx properties that should be read-only externally. Is this the right way to do that? It seems weird that s is val. I'm wondering if the compiler will wind up caching that val after one fetch.
    Untitled.kt
    r
    2 replies · 2 participants
  • t

    TuringTux

    03/25/2020, 10:16 AM
    Hello there, I want to create a view containing (among other things) a progress bar in a GridPane. I don't want this progress bar to shrink in height if the window's height is reduced. I have tried
    vGrow = Priority.NEVER
    , but that didn't change anything.
    class ProgressBarView : View() {
    
        override val root = gridpane {
            row {
                progressbar {
                    gridpaneConstraints {
                        margin = Insets(10.0, 10.0, 5.0, 10.0)
                        useMaxWidth = true
                    }
                }
            }
            constraintsForColumn(0).percentWidth = 100.0
        }
    }
    I guess I could explicitly set the minimum height using
    minHeight = some_number
    , but I'd like to avoid having to deal with absolute height values. Is there any other way? Thanks in advance 🙂
    l
    2 replies · 2 participants
  • s

    Shadab

    03/29/2020, 8:18 PM
    Hey there, I am working on a chat app, looking for a way to hide empty rows in listview so that if I have only 2 items in a list I see only those and not empty smartcells. Please help. Thanks.
    s
    c
    9 replies · 3 participants
  • s

    sbyrne

    03/31/2020, 5:16 PM
    If I have
    class MyApp:App(MyView::class)
    and later from another window (which has a different scope) I do
    find<MyView>().openWindow()?.requestFocus()
    , how do I get it to focus the original view instead of creating a new window?
    r
    1 reply · 2 participants
  • m

    mariofelesdossantosjr

    04/04/2020, 2:36 PM
    How to make a debounce click with tornadofx, does anyone know?
    r
    6 replies · 2 participants
  • s

    Slackbot

    04/13/2020, 1:36 PM
    This message was deleted.
    s
    o
    2 replies · 3 participants
  • d

    Dustyn

    04/16/2020, 12:20 PM
    And if you run into problems of wrong class file version during compilation - delete your .gradle folder to make sure with the next build you'll get the correct version only 🙂
    p
    2 replies · 2 participants
  • p

    Pedro González

    04/16/2020, 2:48 PM
    Thanks a ton! Will try ir out tomorrow.
    👍 1
    d
    3 replies · 2 participants
  • d

    Dasserbasyouni

    04/17/2020, 4:33 AM
    Hello developers I have installed Intelij TornadoFX plugin and created a gradle project then when I run it, the ide only says failed as the screenshot, and when tried to run "gradlew run" in the terminal it runs successfully, what might be the problem. also "gradle scan" doesn't have errors, link: https://scans.gradle.com/s/hps6fjpr6hcdy Project JDK: java 1.8.0_251
    d
    e
    +1
    20 replies · 4 participants
  • m

    mariofelesdossantosjr

    04/17/2020, 8:49 PM
    I need to force model.valid to false, so I use it in my enableWhen
    d
    1 reply · 2 participants
  • p

    Pedro González

    04/18/2020, 1:04 PM
    But in gradle, kotlinOptions, sourceCompatimility and targetCompatibility are set to 11 or more.
    p
    d
    4 replies · 3 participants
  • p

    Pedro González

    04/19/2020, 1:34 PM
    For example, how to get from any node to the view it is in, or how to get from a view containing a tabpane to the view contained in the currently selected tab.
    d
    4 replies · 2 participants
  • t

    thanerian

    04/19/2020, 3:05 PM
    Hi,a newbie trying to make cross platform desktop app without RN 👋
    d
    2 replies · 2 participants
Powered by Linen
Title
t

thanerian

04/19/2020, 3:05 PM
Hi,a newbie trying to make cross platform desktop app without RN 👋
d

Dustyn

04/19/2020, 4:41 PM
Hey, welcome! What is RN ?
t

thanerian

04/19/2020, 9:24 PM
ReactNative, but I means Electron apps
View count: 2