Why is my JFrame blank while I do a download process?
问题 I have a class that extends JFrame and inside it I have a method as follows: public void downloadUrl(String filename, String urlString) throws MalformedURLException, IOException { BufferedInputStream in = null; FileOutputStream fout = null; try { in = new BufferedInputStream(new URL(urlString).openStream()); fout = new FileOutputStream(filename); byte data[] = new byte[1024]; int count; int modPackSize = getModPackSize(); while ((count = in.read(data, 0, 1024)) != -1) { fout.write(data, 0,