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

    edvin

    12/06/2017, 9:10 AM
    @amanda.hinchman-dominguez Id like to create a more general sample that showcases DND, but also one that would give you the answers you need. Would DND for a customer object cover your use case? It's important to note that you can't/shouldn't DND an actual UI element, but rather something that identifies the tile.
    👍 1
    a
    8 replies · 2 participants
  • c

    camdenorrb

    12/06/2017, 1:32 PM
    For some reason I can't figure out how to make the rectangle always take up all of the canvas space
    r
    2 replies · 2 participants
  • e

    edvin

    12/07/2017, 3:10 PM
    @amanda.hinchman-dominguez Node doesn't have getColumnIndex or getRowIndex though. Are you talking about the static functions inside GridPane? They are of course still available.
    a
    a
    3 replies · 3 participants
  • j

    jmfayard

    12/07/2017, 6:38 PM
    I had a naive question: can we write intellij plugins with tornadofx?
    g
    e
    3 replies · 3 participants
  • c

    carlw

    12/07/2017, 6:53 PM
    Not out of the box AFAIK. I've done this before with a background executive process that manages the installation
    g
    9 replies · 2 participants
  • a

    amanda.hinchman-dominguez

    12/07/2017, 7:02 PM
    to me, philosophically, restarting an app automatically after it crashes doesn't support the point of an app crashing. Why would you want this as a feature?
    g
    c
    13 replies · 3 participants
  • e

    edvin

    12/08/2017, 6:40 AM
    @ron @Ruckus You can actually just do
    tab.select()
    in TFX 🙂
    👍 1
    r
    1 reply · 2 participants
  • e

    edvin

    12/08/2017, 7:44 AM
    @amanda.hinchman-dominguez The functions to configure col/row index are statics on the GridPane class itself. For example, to set the rowIndex of some Node, you do
    GridPane.setRowIndex(someNode, index)
    . But you already know this, since you used exactly these functions when you tried the builder approach?
    a
    9 replies · 2 participants
  • e

    edvin

    12/08/2017, 8:08 AM
    @Carlton Whitehead I didn't quite get what you wanted to do with method references / EventBus. Can you give me an example?
    c
    12 replies · 2 participants
  • j

    javafxpert

    12/09/2017, 9:05 PM
    Thanks Edwin!
    1 reply · 1 participant
  • c

    carlw

    12/09/2017, 9:26 PM
    would be nice for an app store / shopping selector too
    k
    1 reply · 2 participants
  • r

    ron

    12/10/2017, 12:42 PM
    also I have a business method that is disconnected from javafx (mainly because I can call the same functionality from a commandline) and I was wondering what a decent way would be to link it up to a progressbar
    k
    20 replies · 2 participants
  • e

    edvin

    12/11/2017, 8:29 AM
    This is probably the ugliest bug in TornadoFX, we really should fix this: https://stackoverflow.com/questions/47745053/tornarofx-runasync-issue
    r
    1 reply · 2 participants
  • w

    wineluis

    12/11/2017, 12:42 PM
    I think that stackoverflow issue has its root on this one (same person apparently) https://github.com/edvin/tornadofx/issues/514
    a
    1 reply · 2 participants
  • g

    groostav

    12/12/2017, 1:10 AM
    how do you guys handle determining a text file's encoding?
    r
    e
    4 replies · 3 participants
  • e

    edvin

    12/12/2017, 7:34 PM
    @Ruckus I think we looked at runAsync together the last time and didn't find a solution, but I have a suggestion now. What do you think about this:
  • r

    ron

    12/12/2017, 7:52 PM
    @amanda.hinchman-dominguez I dont see where you set the actual item that you are dragging (or I am missing it) this is how I do it:
    setOnDragDetected { event ->
                startDragAndDrop(TransferMode.MOVE).apply {
                    setContent { put(entryformat, selectedItem!!.uuid) }
                    event.consume()
                }
            }
    a
    5 replies · 2 participants
  • a

    amanda.hinchman-dominguez

    12/13/2017, 3:28 AM
    I saw this, but I wish there was more information. Anyone that knows about drag-and-drop for custom dataformats, what's your feedback? https://stackoverflow.com/questions/5256308/serialization-of-java-object-created-from-external-api
    1 reply · 1 participant
  • s

    spechard

    12/13/2017, 9:36 PM
    does anyone know a showcase for JFoenix?
    b
    2 replies · 2 participants
  • c

    carlw

    12/14/2017, 3:06 PM
    LOL an assert statement! on line 1388 😬
    a
    3 replies · 2 participants
  • j

    javafxpert

    12/14/2017, 9:05 PM
    Thanks Carl. That worked
    r
    2 replies · 2 participants
  • e

    edvin

    12/18/2017, 9:44 PM
    I have pushed the change, and I'm creating a new snapshot at sonatype now 🙂
    💪 1
    👏 1
    r
    4 replies · 2 participants
  • n

    nimakro

    12/18/2017, 10:02 PM
    Just bought 8 books.. I think I have enough to read during the holidays 😉
    t
    1 reply · 2 participants
  • a

    abhinay

    12/19/2017, 3:16 PM
    @amanda.hinchman-dominguez My PR does it all 😉
    a
    1 reply · 2 participants
  • s

    Sebastian

    12/19/2017, 7:20 PM
    I think my message drowned, so I'll repost - hope that's ok:
    Hi everyone! Soo, you seem to just use the normal read/write properties for data classes. Can’t that lead to some issues? The flux idea (similar concepts are available), where there’s only one class that can update the data, seems more structured. That way the whole encapsulation also makes more sense to me.
    I’ve written some code with read only properties (objects and primitives / not sure about lists and maps), but what’s your view on it as (more) experienced programmers?
    👍 1
    r
    6 replies · 2 participants
  • a

    abhinay

    12/19/2017, 8:12 PM
    @g4sarma Use PauseTransition
    g
    1 reply · 2 participants
  • r

    ron

    12/20/2017, 8:20 PM
    another one for the books 🙂
    👍 2
    n
    1 reply · 2 participants
  • e

    edvin

    12/20/2017, 8:34 PM
    @thomasnield Thanks for answering the issue today 🙂
    👍 1
    t
    6 replies · 2 participants
  • e

    edvin

    12/20/2017, 8:44 PM
    @r4zzz4k It looked like from the stack trace that the fullscreen action maybe trigger a refocus of the window, and that's why it reloads twice. You did have reloading active, right? In any case, we might be able to fix this, I'll look at it tomorrow 🙂
    r
    1 reply · 2 participants
  • e

    edvin

    12/21/2017, 12:05 PM
    @r4zzz4k Try to read the value of FX.reloadViewsOnFocus inside of
    onDock
    in your view and see what it says.
    r
    5 replies · 2 participants
Powered by Linen
Title
e

edvin

12/21/2017, 12:05 PM
@r4zzz4k Try to read the value of FX.reloadViewsOnFocus inside of
onDock
in your view and see what it says.
r

r4zzz4k

12/21/2017, 12:12 PM
Thanks for the pointer, now I know what Live Views in TornadoFX configuration actually means. 😀 It's working as expected on disabling that. Sorry for all the noise.
e

edvin

12/21/2017, 12:14 PM
Haha 🙂 Great! Maybe I should have opted for a less buzzworthy description of that feature.
r

r4zzz4k

12/21/2017, 12:26 PM
Nah, I believe it's fine 🙂 It's a bit sad that you eventually removed
pack()
/
unpack()
methods but I see the point with view hierarchy. But what do you think on automatic saving and restoring of data injected via
params
? Should that be possible? If you wish, I can fill an issue on the repo to discuss it in a bit more structured way than here.
e

edvin

12/21/2017, 12:27 PM
@r4zzz4k Please do - I definitely want to make live views work as well as possible 🙂
r

r4zzz4k

12/21/2017, 12:44 PM
Done! https://github.com/edvin/tornadofx/issues/575 I agree that this is really a killer feature and should be available for more use cases.
👍 1
View count: 1