Pasta: aaff827b39d3fe3c23475a06e6eeb1e709410c75 (2015-01-04)

Język: Java
Adres: p43.pl/p,aaff827b39d3fe3c23475a06e6eeb1e709410c75
Ilość linii: 18
Rozmiar: 0.68 kB
Wyświetleń: 514
Ostatnio użyto: 2017-09-19 02:57:11
// http://stackoverflow.com/questions/7219431/why-connection-to-localhost-is-refused try { urlConnection.setConnectTimeout(1000); urlConnection.setReadTimeout(1000); } catch (Exception e) { // komunikat o błędzie JOptionPane.showMessageDialog(this, "Unable to re-draw taxonomy. An exception occured:\n" + e.toString(), "File IO Exception", JOptionPane.WARNING_MESSAGE); } try { String ss = this.getClass().getProtectionDomain().getCodeSource().getLocation().toURI().getPath(); sss = ss.substring(ss.indexOf("/"), ss.lastIndexOf("/")); } catch (URISyntaxException ex) { sss = ""; }