Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to run a method inside a thread so that main frame won't freeze in javaFX

3568520Oct 14 2017 — edited Jan 18 2018

Hi. im kinda new to javaFX. im making a javaFX application using MySQL as the database. i have a function called "search()" that retrieves data. whenever i hit search() button frame freezes. i wanna run the method in a thread (like i used to do in swing) so that i can pop up a gif while data populate. anyone can help me? it's better if i can get the actual progress and set it in a progress bar. but seems its a lot work should be done. Thanks in advance! happy weekend! 

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 15 2018
Added on Oct 14 2017
4 comments
2,333 views