We have application which is Integrated with Network device for performance and tuning related functionalities.
We are using JavaFx For UI, when ever i connect to Network device,for login and get responses the UI Show "Not Responding".
could any one suggest how to over come the issue.Login screen shows not respongding
Any I/O done over a slow and unstable channel such as (but not limited to) a network is bound to give not responding user interfaces. Therefore any significant I/O should be done in a separate thread.
Some of the options you have are:
See also: Concurrency in JavaFX
The UI goes not responding because the program is connecting to the network device and the UI is being run in the same
Thread
. You need to start a newThread
to connect network device. When UI and connection to network device are in two different threads, the UI will not freeze.