socket communications in JFX

Jose Martinez jmartine_1026 at
Sun Aug 12 18:53:11 PDT 2012


Thank you.  I will digest this info and respond back with any questions.

 From: Jonathan Giles <jonathan.giles at>
To: openjfx-dev at 
Sent: Sunday, August 12, 2012 9:33 PM
Subject: Re: socket communications in JFX
The generally accepted approach is to keep the slow running tasks off of the UI thread (in our case the JavaFX Application Thread). If you don't, you subject the user to a slow user interface, but I'm sure you're well aware of this based on your comments.

Generally how you approach this is not defined by JavaFX, rather it comes down to how your architecture needs to work. One place to look is the JavaFX Worker and Task API:

-- Jonathan

On 13/08/2012 1:27 p.m., Jose Martinez wrote:
> Hello,
> I am preparing to implement multiplayer capabilities.  Saw one or two articles out there about socket communications and JFX but they were from JFX 1.x.
> I guess my first question is, is there a way to communicate from a socket thread directly to the JFX main thread or does the JFX main thread need to poll some shared object?  Is there any recent documentation out there on either the topic of socket communications within JFX or even just multithreading in JFX applications?
> thanks!
> jose

More information about the openjfx-dev mailing list