for loop - Java FX Webview UI update -


how update java fx webview while getting url loop . below code example.

                string[] url = textarea.gettext().trim().split("\\n");                  for(int =0; i< url.length; i++) {                  wv.getengine().load("http://google.com/search/query=""+url[i]+"");   //the page load on webview on each itertion                  } 

please how loop on java fx. definitley using

thread.sleep(int); 

will hang ui.


Comments

Popular posts from this blog

resizing Telegram inline keyboard -

command line - How can a Python program background itself? -

php - "cURL error 28: Resolving timed out" on Wordpress on Azure App Service on Linux -