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

    Gabriel Sanmartin

    05/01/2020, 8:22 AM
    hey you guys know how I can set a WritableImage to an ImageView?
    a
    • 2
    • 1
  • p

    Pedro González

    05/01/2020, 1:45 PM
    Another question, the guide shows some utilities to embed a view into another, like the top<SomeView>() function. Does the framework already have some helper function to more generally use views as nodes? As in, e.g. add several views to vbox or to a gridpane.
    • 1
    • 1
  • d

    Dominaezzz

    05/01/2020, 5:51 PM
    Anyone mind helping me with a bit of UI? I want to re-create slack's message. Like the bit with the picture, name, time and text message.
    v
    d
    • 3
    • 3
  • a

    altavir

    05/03/2020, 8:31 AM
    I've updated my old tornadofx build demo repository: https://github.com/altavir/fx-demo. The build works both for Java 8 and Java 11+, so it could be a good starting point for people who are struggling with JavaFX setup.
    d
    • 2
    • 2
  • s

    Slackbot

    05/03/2020, 2:36 PM
    This message was deleted.
    p
    • 2
    • 1
  • a

    Ahmed Mourad

    05/18/2020, 3:14 AM
    I'm so confused, isn't
    javafx.beans.binding.ObjectExpression
    part of JavaFx, which is bundled with Jdk 8? The IDE is fine with resolving my call to
    ObjectExpression#isEqualTo
    and can take me to the source, however, the compiler doesn't seem to recognize any of the methods of that class.
    • 1
    • 1
  • n

    Nikky

    05/18/2020, 5:04 PM
    trying to get back into building GUIs but i am getting stuck on openjdk related issues on windows is there any good sample app that will produce a fat jar with openjfx bundled that will work on any system ? (ideally down to java 8 )
    d
    • 2
    • 8
  • y

    yk_nb

    05/20/2020, 11:38 AM
    Hello everybody. Can you have a look at https://stackoverflow.com/questions/61910314/kotlintornadofx-how-to-open-new-fxml-screen-on-mouse-click-in-another-fxml-scr ?
    a
    • 2
    • 1
  • a

    Ahmed Mourad

    05/23/2020, 4:39 PM
    Is there a way to manually trigger the validation for text fields?
    • 1
    • 1
  • g

    Gaston R W

    05/26/2020, 4:41 PM
    Hi everyone, Someone can help me?, I'm trying to generate the .jar with intellij and maven, using artifacts, but when I double click on the generated file nothing happens. The program only works when run from intellij
    d
    • 2
    • 6
  • s

    sbyrne

    06/04/2020, 3:27 PM
    Is it okay to modify the
    ObservableList
    used by a tableview from another thread?
    d
    g
    • 3
    • 3
  • j

    Jakob K

    06/08/2020, 2:27 PM
    Why are there discussions and github issues about TornadoFX not supporting java versions higher than 8? For me the default TornadoFX library (from Maven) just works fine with Java 13.
    d
    c
    a
    • 4
    • 6
  • i

    iari

    06/11/2020, 10:31 AM
    How can i format a custom
    ListCellFragment
    depending on the orientation of the hosting
    ListView
    ?
    c
    • 2
    • 1
  • o

    Olav Hermansen

    06/13/2020, 6:35 PM
    Trying to bundle my testapp with FXLauncher, but I think I get the main class wrong.
    class TestApp : App(MyView::class)
    
    fun main(args: Array<String>) {
        Application.launch(TestApp::class.java, *args)
    }
    pom.xml
    <app.mainClass>package.TestAppKt</app.mainClass>
    This should work?
    c
    • 2
    • 4
  • o

    Olav Hermansen

    06/16/2020, 8:05 AM
    From the guide https://edvin.gitbooks.io/tornadofx-guide/part1/2_Setting_Up.html I am having issues locating org.openjfx javafx 11.0.2, is it missing from maven central?
    m
    a
    • 3
    • 3
  • o

    Olav Hermansen

    06/17/2020, 7:58 AM
    From my initial view, I figured out that application was configured and ready to use. I try to open next window and close existing. But doing the closing in init might not be a good idea if the view does not exist yet? Any ideas on how I should go about?
    init {
      if(isConfigured) {
        MainApplicationView().openWindow()
        close()
      }
    }
    Edit: runLater on close did the trick, but gives the effect of window glitch. Could be I should check the config before any view is initiated.
    s
    • 2
    • 1
  • a

    Ahmed Mourad

    06/24/2020, 10:02 PM
    How do I control or fix the width of the pop up?
    l
    • 2
    • 2
  • a

    andylamax

    06/28/2020, 11:23 AM
    How do I add tornadofx together with javafx dependency as a gradle dependency? I am having a problem with CI/CD in github actions. In my pc, I can build and test my code coz I have the javafx runtime. However in the testing vm,
    javafx.event.EventTarget
    appears to be missing. Help please . . .
    c
    • 2
    • 11
  • d

    Douglas Arantes

    06/30/2020, 7:27 PM
    Hello, TornadoFX 2.0 isin't in mvn repository?
    m
    a
    • 3
    • 3
  • m

    Mariusz

    07/07/2020, 7:15 PM
    Hey, Sorry for the stupid question but where can I find TornadoFx guide? Link https://edvin.gitbooks.io is not working 😞
    ➕ 1
    g
    d
    +3
    • 6
    • 12
  • a

    andylamax

    07/07/2020, 11:56 PM
    Will TornadoFX embrace Compose Desktop?
    r
    a
    • 3
    • 2
  • m

    Marshall

    07/09/2020, 9:13 PM
    Any idea how I can create the following css using the tornadofx stylesheet?
    .tabstack {
        -fx-tab-max-height: 0 ;
    }
    .tabstack .tab-header-area {
        visibility: hidden ;
    }
    • 1
    • 3
  • l

    Luukas

    07/09/2020, 10:31 PM
    Is there any way to disable some dates on a datepicker? Have been looking everywhere and still cannot find it ;-;
    c
    a
    • 3
    • 3
  • k

    Karlo Lozovina

    07/10/2020, 7:43 PM
    Currently I've prototyped bits and pieces with Text, TextFlow, parts with RichTextFx...
    m
    • 2
    • 48
  • l

    Luukas

    07/12/2020, 6:57 AM
    Hey, I'm sorry for asking this (since someone already asked it a few days ago) but for some reason all the drop downs (combo box, date picker, etc) are using the same size of the root, already tried changing all the width, height, and size parameters of the UI elements but I still cannot seem to fix it. Anyone knows why is this happening or how to fix it? ;-;
    c
    • 2
    • 2
  • a

    Ahmed Mourad

    07/12/2020, 10:38 AM
    Is there a type-safe, TornadoFX-y way to do this:
    d
    r
    • 3
    • 8
  • h

    Hullaballoonatic

    07/16/2020, 9:47 PM
    I'm always trying to get better at tornadofx. it's a hard library to learn if you aren't already comfortable with observable lists and javafx. anyhow, can someone tell me if there's a simple way to have an observable list automatically mapped into drawer items in a drawer?
    m
    • 2
    • 23
  • a

    Ahmed Mourad

    07/19/2020, 5:39 PM
    I have a
    StringProperty
    and I want to use it for a
    DatePicker
    which required an
    ObjectProperty<LocalDate>
    Is there a way to pass a converter or something to do the mapping between the properties? What's the best practice for this? I can't change the type of the
    StringProperty
    variable, it's a bit of a special case.
    s
    • 2
    • 3
  • u

    ushort

    07/23/2020, 3:45 AM
    How to apply a function to a tableview column? I tried using extension function/property but wasn't picked up.
    a
    • 2
    • 5
  • a

    Ahmed Mourad

    07/26/2020, 8:36 PM
    What's the least horrible way to remove all listeners on a property? without having to keep reference to each and every one of them.
    m
    • 2
    • 9
Powered by Linen
Title
a

Ahmed Mourad

07/26/2020, 8:36 PM
What's the least horrible way to remove all listeners on a property? without having to keep reference to each and every one of them.
m

Marshall

07/27/2020, 7:50 PM
The easiest way is to just dispose of the object 😛
💯 1
otherwise, you either have to keep a list of all the listeners, use bindings instead, or use a different strategy
a

Ahmed Mourad

07/27/2020, 9:59 PM
Unfortunately, I need a property not a binding, I guess I could just dispose the object 😐 Tried all weird things with weak references but didn't think of that for some reason 😅
m

Marshall

07/27/2020, 10:15 PM
of course you can bind the property to other properties or a function/lambda but that may not work depending on what you are doing
a

Ahmed Mourad

07/28/2020, 12:57 AM
Yup, it's a bit complicated, I was trying to bind two properties of different types bidirectionally, one of which will be bound bidirectionally to other properties of other types very frequently. To achieve it I tried adding listeners to both properties and propagating the values between them, but it was creating memory leaks even when I used `WeakChangeListener`s.
m

Marshall

07/28/2020, 12:15 PM
you can use "bindBidirectional" and then unbind
val test = booleanProperty(false)
val other = booleanProperty(false)
test.bindBidirectional(other)
you just have to call unbind() on both or
test.unbindBidirectional(other)
a

Ahmed Mourad

07/28/2020, 4:44 PM
Yup, but I can't pass a converter for bidirectional binding, as far as I'm aware, so it works only with properties of the same type.
View count: 1