https://kotlinlang.org logo
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
  • p

    pike

    08/15/2017, 2:01 AM
    lol just did it, thanks though!
    c
    • 2
    • 1
  • e

    edvin

    08/15/2017, 7:58 AM
    @nimakro Thanks for all the great initiatives for the plugin. If we can implement the issues you created, the whole thing is taken to another level!
    👍 1
    n
    • 2
    • 2
  • e

    edvin

    08/16/2017, 5:09 PM
    (The link has four images of the process)
    👍 2
    n
    • 2
    • 7
  • p

    pim

    08/17/2017, 5:02 PM
    @nimakro I'm guessing a regular map of weakreferences won't have it's key-value pair garbage collected when it's no longer referenced. It will keep the pairs, maybe pointing to nulls. Might be wrong though.
    n
    • 2
    • 7
  • n

    nimakro

    08/17/2017, 5:12 PM
    @carlw @eddy_wm Hehe I pointed him to that project already 😉
    • 1
    • 1
  • o

    orangy

    08/17/2017, 5:17 PM
    @carlw @eddy_wm that wouldn’t suite my needs, unfortunately. I wanted to implement web backend with #ktor and instead of using React web frontend I thought I could use TFX port. RealWorld approach is nice because it has standard API that can be implemented by backends, and then consumed by frontends, independently of each other.
    r
    • 2
    • 5
  • e

    eddy_wm

    08/17/2017, 5:29 PM
    @orangy I think I have got what you want. It's kind of a Back-end service written in #ktor and the front-end in the TFX. The problem I am not familiar with #ktor. But it's pretty straightforward. I have already consumed Restful services in TFX but using backends from other languages.
    o
    • 2
    • 1
  • n

    nimakro

    08/17/2017, 9:15 PM
    @Ruckus Have fun 😃
    r
    • 2
    • 1
  • e

    edvin

    08/19/2017, 9:24 PM
    @carw Thanks for the steps to reproduce. Will investigate tomorrow.
    👍 1
    c
    • 2
    • 2
  • e

    edvin

    08/21/2017, 8:56 AM
    @pike What do you mean by auto count a table? Do you want to create a StringBinding that counts the number of items in the table?
    p
    • 2
    • 2
  • e

    edvin

    08/21/2017, 10:37 AM
    @dr.fornax My wife ended up in the hospital this weekend with Bell's palsy, so I didn't get any time to look at your app. I'm a bit behind schedule as I always seem to be lately, will let you know as soon as I get a chance to look at it.
    n
    • 2
    • 2
  • r

    ron

    08/22/2017, 7:36 AM
    @pike currently no, it uses the build name
    p
    • 2
    • 1
  • g

    gtnarg

    08/22/2017, 12:33 PM
    @dr.fornax - did you sort out your CodeArea textProperty binding issue? I've done it and can dig up the code if you are still having problems.
    d
    • 2
    • 3
  • e

    edvin

    08/23/2017, 6:10 AM
    @Marcin Wisniowski Why don't you use the
    label
    builder? If you really have a legit use case for
    createLabel
    you could use the same pattern we use in our extension functions to add it to the parent automatically.
    m
    • 2
    • 2
  • r

    ron

    08/23/2017, 11:17 AM
    those are the default javafx charts
    p
    • 2
    • 1
  • e

    edvin

    08/25/2017, 11:45 AM
    @nimakro It's because of this TornadoKeyboard 😎
    👍 1
    n
    • 2
    • 1
  • t

    thomasnield

    08/31/2017, 9:40 PM
    @jchildress how are things over there now? My friends in Beaumont just evacuated. https://www.washingtonpost.com/news/capital-weather-gang/wp/2017/08/31/harvey-is-a-1000-year-flood-event-unprecedented-in-scale/
    j
    • 2
    • 1
  • e

    edvin

    09/01/2017, 6:49 PM
    @tieskedh Not sure it adds much value to add generics to the App constructor as it would break backwards compatibility, and since you can't use generics with varargs, you'd have to resort to the old syntax for the stylesheets anyway.
    t
    • 2
    • 7
  • e

    edvin

    09/01/2017, 6:50 PM
    Sorry for being absent today, just got my CO2 laser.. hehe 🙂
    😎 1
    🎉 1
    n
    • 2
    • 3
  • a

    aayush

    09/04/2017, 10:24 AM
    Instead of loading font from css, I'm using this
    Font.loadFont(javaClass.getResourceAsStream("/fonts/Lato-Regular.ttf"), 16.0)
    And according to the method loadfont documentation
    * Loads a font resource from the specified input stream.
         * If the load is successful such that the stream can be
         * fully read, and it represents a supported font format then a
         * <code>Font</code> object will be returned.
    When I print this I do get a Font Object like mentioned in Font.java file
    Font[name=Lato Regular, family=Lato, style=Regular, size=16.0]
    Is this only loading the font & not applying to the application?
    e
    • 2
    • 3
  • c

    carlw

    09/04/2017, 1:19 PM
    There's a mechanical keyboard meetup in Frankfurt https://www.reddit.com/r/MechanicalKeyboards/comments/6w07jq/news_frankfurt_germany_meetup_on_october_14th/
    n
    • 2
    • 1
  • e

    edvin

    09/06/2017, 8:33 AM
    @aayush Then, to use this font everywhere by default, define this selector:
    root { font = latoRegularFont }
    👍 2
    a
    • 2
    • 1
  • e

    edvin

    09/06/2017, 8:39 AM
    @Ruckus Could we change the font size parameter in
    loadFont
    from double to number without issues?
    r
    • 2
    • 2
  • e

    edvin

    09/06/2017, 9:21 PM
    @Ruckus saves the day again 🙂 Thanks, I didn't know that. Did it now.
    r
    • 2
    • 1
  • p

    pike

    09/06/2017, 11:09 PM
    I have something I call "HoverChart" which is a linechart in a stackpane where when you mouse over a data point, a line highlights all the points on that day and a box shows the details
    j
    • 2
    • 1
  • p

    pim

    09/08/2017, 12:33 PM
    @edvin that was me :) JFoenix' code is indeed almost unreadable, contains a lot of undocumented, very buggy and duplicated code
    s
    a
    • 3
    • 2
  • e

    edvin

    09/10/2017, 9:40 PM
    @dr.fornax Yeah, Gradle refresh in IDEA has been broken for ages it seems 🐛 You can disable the context menu or just removing it's items:
    contextMenu.items.clear()
    . I will add an API to control this more elegantly. It should still be single select by default though?
    d
    • 2
    • 1
  • t

    thomasnield

    09/11/2017, 2:10 PM
    @edvin I wondered that more than once, I just never got around to scoping it out
    n
    • 2
    • 1
  • e

    edvin

    09/13/2017, 11:38 AM
    Interesting SO question. I answer this with maybe the most important take away from learning TornadoFX - you can always access the underlying JavaFX API. I can't stress this enough 🙂 https://stackoverflow.com/questions/46182788/tornadofx-drag-and-drop-on-a-treeview/46196564#46196564
    👍 3
    p
    • 2
    • 2
  • e

    edvin

    09/15/2017, 9:31 AM
    I guess
    SVGPath(resources.text())
    might work, havent tried though. We could add a constructor to SVGPath that accepts a source path as well. Let me know if it works, I can add it.
    a
    • 2
    • 13
Powered by Linen
Title
e

edvin

09/15/2017, 9:31 AM
I guess
SVGPath(resources.text())
might work, havent tried though. We could add a constructor to SVGPath that accepts a source path as well. Let me know if it works, I can add it.
a

aayush

09/15/2017, 10:03 AM
Like this ?
SVGPath(resources.text("M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z"))
e

edvin

09/15/2017, 10:17 AM
No, if you already have the text inline, you'd just do
SVGPath("M3...
a

aayush

09/15/2017, 10:32 AM
item(icon = SVGPath("M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z"), expanded = true) {
            add(PlaceHolderView::class)
        }
This is giving me error: Too many arguments for public constructor SVGPath()
@edvin
e

edvin

09/15/2017, 12:14 PM
Sorry,
SVGPath().apply { content = "M3" }
a

aayush

09/15/2017, 12:19 PM
Ok this worked but how can I style this icon using css?
like width height, colors and stuff
e

edvin

09/15/2017, 12:20 PM
@aayush For styling SVGPath, see the CSS Docs: https://docs.oracle.com/javase/8/javafx/api/javafx/scene/doc-files/cssref.html
Basically it has all the properties of Shape and Node.
a

aayush

09/15/2017, 12:23 PM
I am asking about how will I assign the css class name to this icon? As for others I use addClass("my-custom-class").
val menuIcon= SVGPath().apply { content = "M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z" }
    override val root = drawer {
        item(icon = menuIcon, expanded = true) {
            add(PlaceHolderView::class)
        }
e

edvin

09/15/2017, 12:23 PM
Just the same way, using
addClass
? 🙂
SVGPath().apply { content = "M3"; addClass() }
a

aayush

09/15/2017, 12:23 PM
ohhhkk. will give it a try
View count: 3