This discussion is archived
1 Reply Latest reply: Jan 11, 2013 2:20 PM by 805536 RSS

slow response to runtime changes in gui

oajamfibia Newbie
Currently Being Moderated
HI,

In my JavaFx 2.2 app, a scheduled task is listening to a usb device. When data comes from the device, the thread needs to update some text and stuff in the ui.
The updates are done via a Runtime.runLater and it works. Problem is that the ui reacts very slowly. I can see that the ui reacts to the changes after 1-2 seconds. The changes are small stuff like changing the text in as few labels and hiding or showing a panel.

I expect changes like that to be visible instantly. What am I doing wrong ? Is there a way to provoke a refresh of the scene ?

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points