This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package sheet12.simpledownloadclient; | |
import java.io.File; | |
import java.io.FileOutputStream; | |
import java.io.IOException; | |
import java.io.InputStream; | |
import java.net.URL; | |
public class DownloadThread extends Thread { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public void error(final String errorMsg) { | |
SwingUtilities.invokeLater(new Runnable() | |
{ | |
public void run() { | |
JOptionPane.showMessageDialog( | |
DownloadFrameThreaded.this, errorMsg, "Error", JOptionPane.ERROR_MESSAGE | |
); | |
} | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- Alt --> | |
<body class="font-family-ubuntu font-size-is-default menu-type-fusionmenu col12"> | |
<!-- Neu --> | |
<body class="font-family-ubuntu font-size-is-default menu-type-fusionmenu col12 agn-body-sitebranding"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$salt = ''; | |
$password = ''; | |
for($i=0;$i < 64;$i++) { | |
$char = ''; | |
switch(rand(0,3)) { | |
//A-Z | |
case 0: | |
$char = chr(rand(65,90)); | |
break; | |
//a-z |
NewerOlder