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

    04/26/2018, 1:18 AM
    @Lucas someone recommended gluon a while back, I think it builds well with gradle but I have yet to test it out myself
    l
    1 reply · 2 participants
  • b

    bkenn

    04/26/2018, 1:43 AM
    TestFX is definitely the standard for testing JavaFX. As far as i know, it is the a standard as an open source solution. Gluon is a company that has heavily invested into the JavaFX ecosystem. They develop and maintain SceneBuilder which is a way to develop the UI of JavaFX in FXML format. They also have been trying to make it easier to dwvwlop JavaFX on mobile. I know they do other stuff but off the top of the noggin its not comimg
    l
    1 reply · 2 participants
  • m

    mariofelesdossantosjr

    04/27/2018, 1:36 PM
    Is posible customize ComboBox<T>.makeAutocompletable "css"?
    a
    2 replies · 2 participants
  • h

    hoang

    04/27/2018, 1:38 PM
    I have tried Debug mode too and it also doesnot work
    e
    18 replies · 2 participants
  • g

    Gary Tierney

    04/27/2018, 5:45 PM
    @edvin fyi, tornadofx seems not to build under OpenJDK due to the use of
    com.sun.deploy.uitoolkit.impl.fx.HostServicesFactory
    or maybe I missed something
    r
    c
    6 replies · 3 participants
  • b

    bjonnh

    04/30/2018, 3:33 PM
    but I'm really impressed by the performance and ease of designing the UI (using the DSL I didn't try FXML yet, not even sure if it has any advantage for me)
    t
    3 replies · 2 participants
  • t

    thomasnield

    04/30/2018, 9:52 PM
    @bjonnh you might benefit from reading this https://legacy.gitbook.com/book/thomasnield/rxjavafx-guide/details
    👍 1
    g
    2 replies · 2 participants
  • g

    Gary Tierney

    04/30/2018, 11:03 PM
    there's also
    runAsyncWithOverlay
    b
    2 replies · 2 participants
  • t

    thomasnield

    04/30/2018, 11:16 PM
    @bjonnh ProgressBar and ProgressIndicator https://github.com/edvin/tornadofx-guide/blob/master/part1/4.%20Basic%20Controls.md#progressbar
    b
    5 replies · 2 participants
  • n

    Nico Smeenk

    05/01/2018, 12:02 AM
    have a look at
    runAsyncWithProgress { ... } ui { ... }
    that worked for me
    b
    1 reply · 2 participants
  • c

    carlw

    05/02/2018, 5:02 PM
    @Nico Smeenk have you seen this page? bind the TaskStatus fields against your UI. then, when the process finishes, the binding dictates the update https://edvin.town/tornadofx-runasync-with-taskstatus/
    n
    1 reply · 2 participants
  • c

    carlw

    05/03/2018, 2:25 PM
    i think this problem is related to the component itself. running the SplitPane program on a laptop doesn't produce any of this flakiness because the cursor changes over and makes clear when the drag/resize operation is about to begin.
    a
    4 replies · 2 participants
  • b

    bjonnh

    05/03/2018, 11:21 PM
    When having a tableview with multiple selection activated, is there a way to not have fun <S> TableView<S>.onSelectionChange(func: (S?) -> Unit) = trigger an event by element selected AND unselected in the table?
    1 reply · 1 participant
  • e

    edvin

    05/04/2018, 8:57 PM
    @kastork I think we'll have that eventually, because @nimakro is working on the view builder plugin. He'll need to write code that traverses the tree anyway, so I might steal that and add the file structure popup 🙂
    n
    2 replies · 2 participants
  • k

    kastork

    05/04/2018, 9:04 PM
    @Nico Smeenk How about
    val salutations = listOf("Herr", "Frau", "")
    and just have the property be a String instead of a
    Salutation
    ?
    n
    1 reply · 2 participants
  • c

    carlw

    05/06/2018, 11:04 PM
    @napperley i just downloaded the file on ubuntu. it saved as a .mov and was playable with both the VLC and the default video player.
    n
    5 replies · 2 participants
  • a

    abhinay

    05/07/2018, 4:51 PM
    @Sola
    fitToParentSize()
    probably won't work with ImageView since it binds the
    minHeightProperty()
    and
    minWidthProperty()
    with parent's
    height
    and
    width
    property respectively. In case of an ImageView, you need to bind the
    fitHeightProperty
    and
    fitWidthProperty
    instead.
    s
    1 reply · 2 participants
  • m

    mikehearn

    05/09/2018, 11:33 AM
    jfx/tornadofx/graviton-like things can help attack the problem by boosting productivity of in-house devs
    👍 4
    b
    1 reply · 2 participants
  • m

    mikehearn

    05/09/2018, 12:59 PM
    but ultimately a lot of the slowdown comes from practices that make sense when the stakes are higher, like version control, unit testing, actually designing a UI instead of using a mishmash of cells that may or may not have copy/paste errors in them ...
    c
    1 reply · 2 participants
  • a

    abhinay

    05/10/2018, 4:40 AM
    @kastork Have you checked https://community.oracle.com/thread/2413087 ? If that helps, also checkout https://stackoverflow.com/questions/22089022/line-chart-live-update 🙂
    k
    1 reply · 2 participants
  • b

    bjonnh

    05/16/2018, 10:17 PM
    maybe I'll just switch to what I used to do in my other projects, d3js in webview…
    r
    1 reply · 2 participants
  • d

    danielmcq

    05/20/2018, 6:23 AM
    @amanda.hinchman-dominguez if you mean I should have used nameProperty not name, I think you're right! Changing the bindChildren function to
    shapeItem -> button(shapeItem.nameProperty)
    gives no error and does render two buttons...however the labels don't show on the buttons, leading me to believe I have to init my ShapeItem model after setting fields in the constructor. Strange though, as the examples I was looking at (https://stackoverflow.com/questions/47802015/drawing-lines-from-viewmodel-tornadofx and https://stackoverflow.com/questions/47681250/binding-a-view-to-a-changing-controller-property) seemed to imply you could use regular properties on each item in the list and they didn't have to be JavaFX properties.
    a
    1 reply · 2 participants
  • e

    edvin

    05/20/2018, 2:18 PM
    @elexx We sorted this in the issue, right? 🙂 For others reading this, the issue is that
    runAsyncWithProgress
    operates on the button in button1, and on the surrounding container in button2, since the button builder scope is closed when he calls
    runAsyncWithProgress
    .
    e
    1 reply · 2 participants
  • e

    edvin

    05/23/2018, 6:44 AM
    @Carlton Whitehead Your TextFormatter specifies a default decimal format, so you need to clear it. I answered your SO question 🙂
    c
    1 reply · 2 participants
  • e

    edvin

    05/23/2018, 7:42 AM
    @gtnarg We could expand the wizard with the possibility to manipulate the order perhaps 🙂
    g
    2 replies · 2 participants
  • j

    jchildress

    05/23/2018, 11:29 AM
    The report mentions a "workaround". https://stackoverflow.com/questions/40561979/javafx-table-view-cell-reuse Not sure if that will work for you.
    a
    1 reply · 2 participants
  • e

    edvin

    05/25/2018, 7:28 AM
    I'm working on a ui where tabs are added to a TabPane, and each Tab needs some initialization code like downloading data before the tab is activated. However, I don't want this data to be fetched for all tabs just because they were added to the TabPane, so
    onDock
    is no good. That got me thinking - is it correct to call
    onDock
    for a tab that's added to a TabPane, or should it just be called whenever the tab is activated? It might be better to just add another signal for when the component is "activated" or something like that. Any thoughts?
    n
    c
    5 replies · 3 participants
  • e

    elexx

    05/28/2018, 11:15 AM
    I'm currently migrating a rather smallish JavaFX project to Tornadofx. At the moment the project uses Fuel to do some rest calls. I'd like to use Tornados rest client instead. The problem is, the project is split up in a "service" module and two frontend modules. One of them is a gui (JavaFX) and the other is a CLI frontend. The service module has dependencies to Fuel, the GUI frontend to the service module and Tornadofx and the CLI frontend only to the service module. From a software architectures perspective, I don't want to add Tornadofx to the service module, just to use the Rest and Json functions. This would result in Torandofx beeing packaged in the CLI client, which feels rather wrong to me. Would it be possible to package more then one artifact when building Tornadofx, to get for example a tornado-lib.jar (containing everything not directly related to FX) and tornado-fx.jar and maybe for backwards compat an tornado-all.jar. Is there anything like this on the roadmap? Would a PR be appreciated? Is this a stupid idea? Need feeback 🙂
    e
    c
    +1
    9 replies · 4 participants
  • m

    mikehearn

    05/29/2018, 8:09 PM
    bad news: it's AWT based
    r
    1 reply · 2 participants
  • t

    thomasnield

    05/30/2018, 3:29 PM
    https://github.com/thomasnield/rxkotlin-jdbc
    d
    2 replies · 2 participants
Powered by Linen
Title
t

thomasnield

05/30/2018, 3:29 PM
https://github.com/thomasnield/rxkotlin-jdbc
d

danielmcq

05/31/2018, 10:56 PM
Awesome. Thanks @thomasnield... I'll give that a spin.
@thomasnield Is your library opinionated about how to transform tables into objects? If not do you use any other libraries in your own projects to do so? Not sure if I'm going to need some kind of ORM library but good to gather thoughts early...
View count: 4