https://kotlinlang.org logo
Join SlackCommunities
Powered by
# javafx
  • m

    miha-x64

    11/28/2016, 11:56 AM
    Thanks!
  • j

    jasoet

    12/27/2016, 5:01 PM
    @jasoet has left the channel
  • t

    teedee

    01/18/2017, 9:21 PM
    @teedee has left the channel
  • a

    altero

    01/19/2017, 1:46 PM
    @altero has left the channel
  • c

    chansek

    03/01/2017, 3:55 PM
    @chansek has left the channel
  • c

    carlw

    03/01/2017, 5:51 PM
    @carlw has left the channel
  • p

    porokorodev

    03/26/2017, 2:14 AM
    @porokorodev has left the channel
  • s

    sreich

    03/27/2017, 6:34 PM
    @sreich has left the channel
  • l

    libcmg

    03/28/2017, 4:11 AM
    @libcmg has left the channel
  • d

    deviant

    04/24/2017, 8:20 AM
    @deviant has left the channel
  • m

    mesquka

    04/26/2017, 2:22 PM
    @mesquka has left the channel
  • t

    thomasnield

    05/10/2017, 1:35 AM
    People in this channel, please note that nearly all JavaFX discussion happens in the #tornadofx channel. Please join us there!
  • t

    thomasnield

    06/27/2017, 7:29 PM
    Anybody who is joining the #javafx channel, please join #tornadofx as this is where all JavaFX/Kotlin discussion takes place
  • t

    thomasnield

    06/27/2017, 7:29 PM
    @thomasnield pinned a message to this channel.
  • r

    roberto.guerra

    06/27/2017, 7:38 PM
    @roberto.guerra has left the channel
  • l

    lupajz

    06/27/2017, 9:20 PM
    @lupajz has left the channel
  • m

    miha-x64

    06/28/2017, 3:09 PM
    @miha-x64 has left the channel
  • a

    alex.hart

    07/06/2017, 2:22 PM
    @alex.hart has left the channel
  • p

    Petros Paraskevopoulos

    07/07/2017, 12:41 PM
    @Petros Paraskevopoulos has left the channel
  • h

    hestad

    04/12/2018, 4:27 PM
    I have a SortedList<SortedList<MyObject>> the inner list is displayed sorted, while the outer list just displays the elements as they were added. Has anyone tried to have nested sorted lists in javafx?
  • t

    thomasnield

    04/14/2018, 1:05 PM
    @hestad you might want to ask in #tornadofx. I think people have done that before and that's where all JavaFX discussion takes place anyway
  • h

    hestad

    04/14/2018, 1:26 PM
    I made the outer lists comparator depend on immutable fields and that works.
  • m

    melatonina

    11/30/2020, 11:55 AM
    Your question is stated imprecisely. If you want to implement debounce on the action event of a button, you could transform the events into a Kotlin Flow, with something like this:
    Copy code
    fun Button.actions(): Flow<Unit> = callbackFlow {
        val handler =  EventHandler<ActionEvent> {
            offer(Unit)
        }
        addEventHandler(ActionEvent.ACTION, handler)
    
        awaitClose { removeEventHandler(ActionEvent.ACTION, handler) }
    }
    and then use the
    debounce()
    method: https://kotlin.github.io/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx.coroutines.flow/debounce.html Thread in Slack Conversation
  • m

    melatonina

    12/13/2020, 4:45 PM
    Hello. I'm using
    GridView
    (from controlsfx) with a custom cell. The cell
    updateItem
    method is being called continuously. Do you have any idea of what could be the cause? The cell has a
    graphic
    content which depends on the type of the item.
    • 1
    • 1
  • g

    groostav

    01/11/2021, 11:49 PM
    does anybody have a good breakdown on multithreading in javafx? I understand that scene graph changes must be done on the event thread, and I guess we should assume that "unless your sure, just do it on the UI thread", but is it safe for me to do something like:
    Copy code
    launch(Dispatchers.JavaFx){
      val viewData = snapshotViewModelState()
      val newView = async(Dispatchers.Default){
        val vbox = VBox()
        vbox.children += makeCoolElements(viewData)
      }
    
      this.view.content = newView
    }
    or
    Copy code
    launch(Dispatchers.JavaFx){
      val viewData = snapshotViewModelState()
      val fxmlLoader = javafx.fxml.FXMLLoader()
    
      val newView = async(Dispatchers.Default){
        fxmlLoader.load(findresource("/com/mycompany/reasonably-standard-fxml-that-doesnt-contain-stages.fxml")) //this is actually annoying since defining an alert in FXML would be handy
      }
    
      this.view.content = newView
    }
    that is to say, is it safe for me to call constructors and/or mutate view objects off the UI thread if I'm certain they're not on a scene graph?
    m
    • 2
    • 1
  • m

    melatonina

    01/26/2021, 10:09 PM
    When I use a custom Control with its Skin as a graphic content of a ListView or a TreeView, they make the list item unselectable, because they don't pass the mouse events upwards. If I make them "mouse invisible", button that are presents inside the Control, are not working, because mouse invisibility applies to the children of the Skin, too. What is the correct way to implement a Control so that it's well-behaved in this sense, that is it allows selection of them item when clicked anywhere but on the interactive children?
  • s

    stephanmg

    02/01/2021, 4:16 PM
    Hello folks. I have a slightly outdated Gradle project using JavaFX (not yet migrated to TornadoFX). I try to build it via Gradle and Github Actions -> I installed via apt-get install openjfx. However it would still complain about javafx package not found. I have a VM here with a similiar setup which works locally. I am a bit confused. Maybe somebody could assist? I could share the CI.yml for the Github action file.
    • 1
    • 4
  • o

    Ole K. Øverland (Norway)

    02/05/2021, 8:58 AM
    Hey! Not really a TornadoFX question, but JavaFX one 🙂 When a
    TableView
    is made editable, every mouse double click / mouse single click on a selected cell / [Enter] press starts cell edit. This is pretty annoying, is there an easy way to disable it? I have a dedicated button in the UI to trigger cell edit. Slack Conversation
    m
    • 2
    • 1
  • b

    Brendan Campbell-hartzell

    08/26/2021, 8:01 AM
    If you've been trying to test javafx components and entire applications like I have and are really disappointed by how slow they are due to the need to launch the application thread and interact with it, I've discovered a way to run them very quickly. Here's the gist: https://gist.github.com/b-camphart/b0465e8b0dc0e48ba7a727faec4806b5
  • c

    Christian Turner

    06/24/2022, 4:42 PM
    I'm currently deciding on libraries for an application I am writing in Kotlin. Trying to determine whether it makes more sense to use JavaFX as is or to use the TornadoFx wrapper. My concern with TornadoFX is that it seems like the library isnt being updated as much. I originally intended to use Compose but I don't think its up to par regrading desktop developmemt. Curious on your thoughts.
    k
    d
    • 3
    • 5