Populate JList with threads
问题 I want JList to be populated with multiple threads. I tried this way but jlist is empty. It would be good if jlist was updated on the fly There are two threads, the other one loads in anouther direction new Thread(new Runnable() { @Override public void run() { for(i=0; i<cells.size()/2; i++){ System.out.println("thread"); try{ HtmlPage p = client.getPage("https://tbilisi.embassytools.com/en/slotsReserve?slot="+cells.get(i).getAttribute("data-slotid")); pages.add(p); if(!p.getUrl().toString()