MultiThread in Java-FX to check internet connectivity every five seconds by the use of ScheduledExecutorService. Currently the code has a bug, the thread is not being killed when you exit the application. You need to download the Mysql_connector to run the Database class.
if the solution to the bug is found, please do a pull request on the project