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

    WildOne (Yuri)

    05/09/2021, 8:28 AM
    Hi. How do I bind the result of a non-observable function to a property? as I understand it, I'd need a ChangeListener for that?
    b
    • 2
    • 5
  • j

    Jgafner

    06/11/2021, 12:18 PM
    Hello I wrote an app that by clicking on different buttons it trigger different command lines ( OS process) I would like to print the output of the commands in a UI component, anyone is familiar with something similar I can take inspiration from ?
    b
    • 2
    • 1
  • j

    Jgafner

    06/12/2021, 10:51 AM
    Hi Is webView builder working ? I am using the latest version and get error when running the app (beside been red in the IDEA) if yes I will really appreciate some references ? TNX
    b
    • 2
    • 2
  • a

    AigleZ Dev

    06/25/2021, 7:52 PM
    Hi, i'm new to tornadofx and javafx in general, how can i put data inside this tableview without having to create a custom object the data i want to put inside is a Double.
    a
    • 2
    • 3
  • a

    AigleZ Dev

    06/30/2021, 6:16 PM
    Hi there, is it possible to make a one row tableview ? and disable selection & hover effects and also remove the scroll panes ? EDIT: Sorry i meant scroll BAR
    b
    • 2
    • 2
  • e

    elect

    09/03/2021, 7:27 AM
    Hi, I'm total newbie, sorry if the question may sound dumb, but I'm extending
    View
    and I'm assigning
    root
    to a
    Slider
    . How may I create a loop among the slider entries?
    b
    • 2
    • 2
  • с

    Сергей Владимирович

    09/23/2021, 12:08 PM
    Hi. Can help me.
    class GFieldSetModel(val Name: String = "")
    class MainView : View("Hello TornadoFX") {
        val controller: GFieldSetController by inject()
    
        override val root = vbox {
            children.bind(controller.fields3) {
                hbox {
                    children.bind(it) {
                        label(it.Name) 
                    }
                }
            }
        }
    }
    
    class GFieldSetController : Controller() {
        val fields1 = FXCollections.observableArrayList( GFieldSetModel("1.1 "),  GFieldSetModel("1.2"))
        val fields2 = FXCollections.observableArrayList( GFieldSetModel("2.1 "),  GFieldSetModel("2.2"))
        val fields3 =  FXCollections.observableArrayList(fields2,fields1 )
        fields3.add(fields1) // it doesn't work
    }
    ✅ 1
    b
    • 2
    • 4
  • s

    Sergen Peker

    09/30/2021, 11:54 AM
    Hello everybody! I need some help with something and I hope someone is willing to. So the past month I've been busy creating a very simple app for a client of mine. It is essentially a simple GUI for them to fill a database with questions and answers and stuff that will be used in a mobile app. Now, this is the first time I used TornadoFX for such a job. It looked very simple and I got the job done pretty nicely. There is a problem tho: I finished the application, but I can't seem to export it in any sort of way. That being a .jar or an installer or anything. I'm using IntelliJ for this and I've tried a few methods, like just building artifacts and creating an installer using The Badass JLink/Runtime Plugin, but none seem to work. I am basically desperate for help at this point, because if this doesn't work I will have to make it from scratch again in something like JavaFX, which I sincerely do not want to do. I hope someone is willing to help me. I'm new to this Slack but I hope you can message me or respond to this. With kind regards, Sergen
    b
    • 2
    • 42
  • w

    WildOne (Yuri)

    10/03/2021, 10:05 AM
    obviously TableView, not ListView (don't know what I was thinking at 3am)
    b
    • 2
    • 3
  • m

    Mathias Cochet

    10/07/2021, 8:57 AM
    In a project i'm currently working on I have a custom wizard with multiple pages (views). For every page I have a controller which handles the business logic. Every page requires some data to be filled in by the user. What would be the best way to temporarily save all of this data until the wizard is completed.
    k
    m
    • 3
    • 3
  • k

    Karlo Lozovina

    10/10/2021, 9:31 PM
    given a
    Text
    node, is there a way to go from mouse click in the node to nearest character in the text?
    • 1
    • 1
  • с

    Сергей Владимирович

    10/11/2021, 9:01 AM
    Don't tell me what I'm doing wrong
    private val map = mapOf("1" to "one", "3" to "three", "9" to "nine")
        private val observableMap: ObservableMap<String, String> = FXCollections.observableMap(map)
        override val root = hbox {
            textfield() {
                bind(Bindings.valueAt(observableMap, "1"))
            }
        }
    
    textfield - is not edited.
    b
    • 2
    • 5
  • m

    Martin Borzan

    10/22/2021, 7:33 PM
    Hi guys! I can't get TornadoFX to work with Java 16 and Gradle. Is that even possible?
    k
    b
    l
    • 4
    • 7
  • m

    Martin Borzan

    11/28/2021, 3:40 AM
    I am having trouble loading a particular Font in my app. The .ttf file is in the resources folder and the path to the file is also correct. This is the code I used to check:
    val fontStr = "fonts/FiraCode-Regular.ttf".apply {
      val inputStream = MethodHandles.lookup().lookupClass().getResourceAsStream(this)
      val clazzPackage = MethodHandles.lookup().lookupClass().packageName
    
      println("FONT LOADING: $clazzPackage -> $inputStream -> ${loadFont("fonts/FiraCode-Regular.ttf", 14)}")
    }
    The output when I run the application is
    FONT LOADING: me.blocky.logreader.style -> <http://java.io|java.io>.BufferedInputStream@6ebd22fa -> null
    Clearly, the file is there since the inputStream is not null. But the loadFont method still returns null. Does anybody know what's going on?
    k
    • 2
    • 1
  • o

    Oleksii

    01/13/2022, 5:15 PM
    Hi, I am creating simple form like this, but I can't find how to create an input to upload a file. Could you point me to some example? Thanks.
    k
    • 2
    • 2
  • g

    geepawhill

    08/02/2022, 2:51 AM
    I also tried the onKeyPressed field, tho it doesn't take a lambda assignment, with a separate Handler class.
    r
    • 2
    • 4
  • r

    Ryan Smith

    08/09/2022, 12:25 AM
    There are a lot of people in this channel - maybe with enough collective experience we can overcome the documentation challenges in Tornado we just have to revive the community
  • g

    geepawhill

    08/09/2022, 12:26 AM
    I would love to see that. Desktop work is still real work, and TornadoFx is a huge timesaver. There are some PR's I might make, but the core is first-rate.
  • r

    Ryan Smith

    08/09/2022, 12:27 AM
    May be overtaken by Compose for Desktop one day, but idk how mature that effort is. In the meantime this is about as close as you can get I feel
  • m

    mikehearn

    08/10/2022, 1:52 PM
    @Ryan Smith If you or someone else wants to do that, it'd be brilliant. Or maybe take some of the ideas and code from Tornado and make a smaller more maintainable library?
  • m

    mikehearn

    08/10/2022, 1:53 PM
    We're doing our bit for the desktop by working on packaging. We just recently launched a new packaging tool called Conveyor that has built in support for JavaFX (and Compose Desktop) apps. Check it out: https://hydraulic.software/
  • m

    mikehearn

    08/10/2022, 1:53 PM
    It handles packaging, signing and software update for you, for all three major platforms (well, rpm support is in the works, on linux you get debs and tarballs).
  • m

    mikehearn

    08/10/2022, 1:54 PM
    With this a major barrier to making and shipping JavaFX/TornadoFX apps falls away and it becomes way more practical to use them for smaller projects where you still need software update.
  • j

    Jonathan Smith

    08/14/2022, 12:33 PM
    I would like to build a JavaFX to build a UI for an existing Kotlin project. I would love to use TornadoFX but I am a bit nervous as TornadoFX has still uses Java 8 runtime and not had an update for a while. The rest of my project (25,000+ lines) has been using the current Java runtime releases and is in production. At the moment I am leaning towards using JavaFX directly. Before I give up, is there a way to use TornadoFX with later versions? Thanks for your help!
    w
    • 2
    • 1
  • s

    Sebastian Schuberth

    01/05/2023, 7:25 AM
    On a related note, what's the general state of TornadoFX? It does not seem to be actively developed anymore, but neither does https://github.com/edvin/tornadofx2 seem to gain traction. Which leaves anyone who want to develop a desktop app with Kotlin in the bad situation that JavaFX with Kotlin is cumbersome if you want to use a DSL, and on the other hand Compose for Desktop is not really mature yet.
  • k

    Kebbin

    01/05/2023, 7:29 AM
    I moved to Compose for Desktop. It was unreal. I've since moved onto webapp using three.js because the CfD 3D stuff was too limited.
  • g

    geepawhill

    01/05/2023, 8:58 PM
    I am sticking with TornadoFx for now. It does appear to be moribund, but it just doesn't feel like there's anywhere to jump. I'll tell you one thing, my views are heavily isolated from my models which are heavily isolated from my domain code. 🙂
  • r

    Ryan Smith

    01/08/2023, 6:34 PM
    I also moved to Compose for Desktop. There are a few things that I found I had to put together myself e.g. a Table view, but overall I found it easier to get moving quickly with Compose for Desktop than I did with Tornado.
  • w

    wakingrufus

    01/12/2023, 11:07 PM
    i still use javafx + kotlin, but i copy the dsl stuff from tornado into my project. I have kicked around the idea of splitting just the dsl into a separate library, but never had had the time to work on it. i dont like the dependency injection and other stuff from tornado as much
  • w

    wakingrufus

    01/12/2023, 11:07 PM
    but i like java 17, so i cant just use tornadofx out of the box anymore
Powered by Linen
Title
w

wakingrufus

01/12/2023, 11:07 PM
but i like java 17, so i cant just use tornadofx out of the box anymore
View count: 4