JavaFX – Background Thread for SQL Query
I created a sample solution for using a Task (as suggested in Alexander Kirov’s comment) to access a database on a concurrently executing thread to the JavaFX application thread. The relevant parts of the sample solution are reproduced below: // fetches a collection of names from a database. class FetchNamesTask extends DBTask<ObservableList<String>> { @Override protected … Read more