JavaFX indeterminate progress bar while doing a process
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: I am trying to insert to my database's one table but this process takes some minutes. I would like to have a indeterminate progress bar while my application is trying to insert. In order to have progress bar, I want to use JavaFX but I don't know how to implement it that it just has be shown until the end of inserting in to the database process. 回答1: JavaFX Tasks are probably the way to go. They provide a way to execute long-running tasks in the background without freezing the user interface. Here's an example of something you