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

    jchildress

    04/24/2019, 5:30 PM
    @Stephane M this might be of interest to you - https://www.mirkosertic.de/blog/2019/04/java-desktop-packaging/
    💯 1
    s
    • 2
    • 1
  • a

    abhinay

    04/25/2019, 6:40 AM
    @Stephane M @amanda.hinchman-dominguez If you guys are migrating to JFX 11 and you hit a roadblock, you can ping me. There might be a chance I left something undone on the
    jdk10
    branch.
    s
    e
    a
    • 4
    • 48
  • e

    edvin

    04/25/2019, 7:03 AM
    @Stephane M Hmm.. that's weird. Can you send me the executable you created, or at least the modified launcher jar with the manifest in it so I can check what's going on?
    s
    • 2
    • 18
  • a

    amanda.hinchman-dominguez

    04/25/2019, 8:28 PM
    wow seriously do we need an account with oracle now to download a jdk lmao why does oracle ruin everything
    🔥 2
    :java: 1
    r
    a
    • 3
    • 3
  • g

    GarouDan

    04/25/2019, 9:30 PM
    How can we bundle and create an executable of your tornadofx application? It looks like there is a project called fxlauncher (https://github.com/edvin/fxlauncher), but I’m searching more for a gradle task or a bash command to do that
    r
    a
    +2
    • 5
    • 35
  • a

    amanda.hinchman-dominguez

    04/25/2019, 10:36 PM
    Because at this point, I don't think we can get JDK 11 for free anymore
    c
    s
    a
    • 4
    • 20
  • a

    amanda.hinchman-dominguez

    04/25/2019, 11:16 PM
    ORACLE RUINS EVERYTHING
    🔥 2
    👌 3
    c
    c
    g
    • 4
    • 7
  • n

    Nikky

    04/26/2019, 7:12 AM
    @amanda.hinchman-dominguez https://adoptopenjdk.net/
    ❤️ 1
    r
    • 2
    • 1
  • e

    edvin

    04/26/2019, 12:08 PM
    TornadoFX 2.0 Snapshots are available here now 🙂 https://oss.sonatype.org/content/repositories/snapshots/no/tornado/tornadofx/2.0.0-SNAPSHOT/
    ❤️ 6
    s
    a
    +2
    • 5
    • 9
  • a

    amanda.hinchman-dominguez

    04/27/2019, 4:21 AM
    I finally got on the event subscription train and I'm all about it
    👏 1
    r
    • 2
    • 1
  • e

    edvin

    04/27/2019, 8:00 AM
    I have a semi large backend project going at work, after that I will convert the CRM to TornadoFX 2.0. That will probably reveal most significant issues, and also force me to get off my ass and fix them.. hehe
    n
    • 2
    • 1
  • r

    ron

    04/27/2019, 8:18 AM
    Showing datagrid not responding to clicks, but the standard javafx components (the treeview on the left) does respond to clicks
    simplescreenrecorder-2019-04-27_10.16.56.mp4
    a
    • 2
    • 4
  • c

    carlw

    04/27/2019, 1:23 PM
    @alilosoft @ron
    Controller_Outfitted_with_Callbacks.kt
    ✔️ 1
    🙏 1
    r
    • 2
    • 1
  • d

    darkmoon_uk

    04/29/2019, 10:20 PM
    Desktop App analytics does seem poorly catered for, sadly. You could integrate with Google Analytics generalised 'Measurement API', here: https://developers.google.com/analytics/devguides/collection/protocol/v1/
    s
    • 2
    • 1
  • a

    abhinay

    05/02/2019, 6:26 AM
    @Stephane M You do not need a
    module-info.java
    file. You just need to add the JavaFX modules to the module path.
    s
    • 2
    • 6
  • e

    edvin

    05/02/2019, 9:56 PM
    I dont think it does. We’re missing a truck load of tests 😬
    c
    • 2
    • 1
  • c

    Carlton Whitehead

    05/02/2019, 10:45 PM
    Ok, I'll add some
    a
    • 2
    • 3
  • s

    Stephane M

    05/06/2019, 1:31 PM
    I've found Corretto 8 on Linux to work well too (and come with JFX bundled)
    a
    c
    • 3
    • 2
  • r

    romainbsl

    05/08/2019, 2:43 PM
    I'm implementing a #kodein feature to be able to use it as principal DI library. And I was wondering if I could access the whole Node hierarchy from anywhere to enhance part of my feature. But if not possible I would go without it
    h
    • 2
    • 2
  • s

    Stephane M

    05/09/2019, 2:04 PM
    One two three four are centered (apparently not) on the first listmenu, but they're not in the second one. The only thing that's changed is the font size
    c
    • 2
    • 2
  • a

    amanda.hinchman-dominguez

    05/09/2019, 2:27 PM
    You could probably recenter the text again
    s
    • 2
    • 7
  • a

    amanda.hinchman-dominguez

    05/10/2019, 12:44 AM
    @Stephane M spent some time with not much luck - looks like the reason for the struggle is because listview is using a skin that calculates width/height at initialization I think - I don't like the idea of maybe having to somehow override the behavior for the skin but maybe I need to look at it again https://github.com/edvin/tornadofx/blob/43d23f22b32ace0cfa8ae59fc5cefa68e6e4a911/src/main/java/tornadofx/ListMenu.kt
    s
    • 2
    • 2
  • i

    ianbrandt

    05/12/2019, 4:50 AM
    I'm trying to work out from the examples and docs I can find here and online how to test a TornadoFX
    View
    with TestFX. I'm not clear on the current way to setup the view properly in a JUnit 5 test. Any help would be appreciated.
    @ExtendWith(ApplicationExtension::class)
    class MyViewTest {
    
    	@Start
    	fun start(stage: Stage) {
    		stage.scene = MyView().root.scene
    		stage.show()
    	}
    
    	@Test
    	fun `test my view`(robot: FxRobot) {
    		println(robot.lookup(".canvas").queryAs(Canvas::class.java).width)
    	}
    }
    
    class MyView : View() {
    
    	override val root = group {
    		canvas(800.0, 600.0)
    	}
    }
    java.lang.NullPointerException
    	at org.testfx.util.NodeQueryUtils.fromWindow(NodeQueryUtils.java:168)
    	[...]
    	at org.testfx.util.NodeQueryUtils.rootsOfWindows(NodeQueryUtils.java:56)
    	at org.testfx.service.finder.impl.NodeFinderImpl.rootsOfWindows(NodeFinderImpl.java:94)
    	at org.testfx.service.finder.impl.NodeFinderImpl.fromAll(NodeFinderImpl.java:59)
    	at org.testfx.service.finder.impl.NodeFinderImpl.lookup(NodeFinderImpl.java:44)
    	at org.testfx.api.FxRobot.lookup(FxRobot.java:186)
    • 1
    • 1
  • j

    Jheruty

    05/20/2019, 1:23 AM
    So my understanding is that since this view does not actually modify the model, we can peek at the underlying model directly instead of going through the ViewModel?
    a
    • 2
    • 1
  • u

    ushort

    05/22/2019, 4:44 PM
    Hey, question regarding performance. Im creating a view around 100 times and the view is loaded through fxml so its quite slow. I read somewhere that reusing the FXMLLoader can improve performance and was wondering if tornadofx already had some sort of support for that
    c
    • 2
    • 3
  • a

    alex

    05/23/2019, 8:02 AM
    Just another coin for the community. https://sanyarnd.github.io/standardpaths/
    StandardPaths
    provides the utility class with the most common system- and user- related directories. Features • All major distributions: Windows, Linux, MacOS (not yet, no access to MacOS right now) • Ease of use • NIO-based • Lightweight (~10kb) • JDK8+ support Usage:
    Path home = StandardPaths.home();
    Path cache = StandardPaths.cache();
    Someone mentioned
    AppDirs
    library few weeks ago, I thought about contributing (few advanced methods of retrieving paths with WinAPI), but
    AppDirs
    is JDK6+ based with WinXP support, while I'm trying to utilize JDK7 NIO as much as I could (e.g.
    Path
    better than
    File
    better than
    String
    ) with modern OSes in mind. API difference:
    Path home = StandardPaths.dataLocal().resolve("<author>/<app>/<ver>")
    vs
    Path home = Paths.get(AppDirsFactory.getInstance().getUserDataDir("<app>", "<ver>", "<author>", true)));
    👍 3
    e
    • 2
    • 2
  • i

    ianbrandt

    05/25/2019, 11:06 PM
    Update: Simplified test case... Continuing my TornadoFX/TestFX exploration above, I'm now trying to get TestFX to fire a button action. When I run my test I see the view appear, and I see the TestFX robot moving the cursor to the view's button. I presume that it clicks on it as well, but the expected action doesn't fire. If I launch the app and click the button manually, I do get the expected result. My suspicion is that I'm still not properly initializing TornadoFX or TestFX in the
    @Start
    method of my test, but I'm not sure what else needs to be done. Any help would be most appreciated. https://github.com/ianbrandt/tornadofx-test/blob/master/src/test/kotlin/com/ianbrandt/test/MyViewTest.kt
    a
    • 2
    • 26
  • c

    Carlton Whitehead

    05/26/2019, 10:51 AM
    @altavir try .select()
    a
    • 2
    • 1
  • a

    amanda.hinchman-dominguez

    05/27/2019, 4:29 AM
    https://medium.com/@hinchman_amanda/tornadofx-migrating-jdk-8-to-open-jdk-11-a711290259ac?source=friends_link&amp;sk=26cd054966021616d9ca1bf111d5137e
    a
    i
    • 3
    • 20
  • n

    napperley

    05/28/2019, 4:34 AM
    Does TornadoFX have its own UI scaling system, or does it rely on JavaFX for the scaling?
    r
    • 2
    • 1
Powered by Linen
Title
n

napperley

05/28/2019, 4:34 AM
Does TornadoFX have its own UI scaling system, or does it rely on JavaFX for the scaling?
r

Ruckus

05/28/2019, 1:37 PM
JavaFX
View count: 2