I have a swing application that read HTML pages using the following command
String urlzip = null; try { Document doc = Jsoup.connect(url).get(); Elements links = doc.select("a[href]"); for (Element link : links) { if (link.attr("abs:href").contains("BcfiHtm.zip")) { urlzip = link.attr("abs:href").toString(); } } } catch (IOException e) { textAreaStatus.append("Failed to get new file from internet:"+e.getMessage()+"\n"); e.printStackTrace(); } return urlzip; then my swing application will return a string, It works fine and it reads any HTML page that I give to it. However, some times the application gave me the following error type Exception report. How can i increase timeOut?