JavaFx how to avoid window freezing/not responding when running thread like api [on hold]

11
August 13, 2019, at 9:00 PM

When I tried to post to an API which is inside on the thread and run it, the whole window freezes even if I put the thread on the other window. What I want is even the thread is running I want to access the window. How to solve this problem ?. Here is my sample code:

public void method() {
    Executors.newSingleThreadExecutor().submit(() -> {
      service.runService();
    });
  }
Answer 1

Resolved! I used

asynctask

can be found here -- > https://github.com/victorlaerte/jfx-asynctask?source=post_page-----26689f3cd8fa----------------------

READ ALSO
Puppeteer: page.goto(url) keeps loading as about:blank

Puppeteer: page.goto(url) keeps loading as about:blank

I tried to crawl the html using puppeteerBut it failed because the url is fixed as js rendered

23
Splitting array of days into months

Splitting array of days into months

I have an array of daily requirementsThe first element in the array represents a start date

44
How the input to store enhancer is provided in ReactJs

How the input to store enhancer is provided in ReactJs

Store enhancers seem like extension methods in C#, since they add functionality to a Redux data storeAlthough in most projects, middlewares are enough to modify the behavior of the data store, but the question is:

32
Database Update results transaction for phonegap

Database Update results transaction for phonegap

I am creating an event app where you can press a button if you want to favorite the eventAfter clicking on this button, the image changes and the value "active" in the database linked to this event, should change from 0 to 1 and vice versa

37