Bug: Not on FX application thread exception is inconsistent

Tom Schindl tom.schindl at bestsolution.at
Tue Nov 13 06:17:18 UTC 2018


On 13.11.18 04:00, Ty Young wrote:
> 
> On 11/12/18 5:39 PM, Tom Schindl wrote:
>> Hi,
>>
>> You are supposed to interact with Nodes who are currently shown in the
>> SG only only the JavaFX Application Thread.
> 
> 
> I never touch the GUI in my other threads, ever. The threads simply
> change the value of a type stored in a property. The ChangeListener that
> is used is created in the GUI JavaFX thread.
> 

It does not matter on which thread you create a ChangeListener the
important thing is on Thread causes the change-listener to trigger.
*None* of the JavaFX code-structures (Property, ObservableList) are
multi-thread-safe you accessing them from multiple threads at the same
time is asking for trouble.

Tom

-- 
Tom Schindl, CTO
BestSolution.at EDV Systemhaus GmbH
Eduard-Bodem-Gasse 5-7. A-6020 Innsbruck
Reg. Nr. FN 222302s am Firmenbuchgericht Innsbruck


More information about the openjfx-dev mailing list