I have a function that connects to a data base, get some data, and alter my pane using the data.
i want this function run after i enter the reference to the query in the background and let the user continue filling other details.
java.lang.IllegalStateException: Not on FX application thread; currentThread = Thread-6
i used a thread and keep getting this error.
what i have found so far: i found that many people says to use a run later function. using this function does the job, but not par alley. it waits for the function to complete the execution to let the user continue.
how can i fix this problem.