From: Brett Porter Date: Fri, 20 Jan 2006 09:16:20 +0000 (+0000) Subject: [MRM-63] not able to hide, remove X-Git-Tag: archiva-0.9-alpha-1~972 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=bcee846abdd67f563ead87996e53b481345bcf59;p=archiva.git [MRM-63] not able to hide, remove git-svn-id: https://svn.apache.org/repos/asf/maven/repository-manager/trunk@370763 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/maven-repository-artifact-applet/src/main/java/org/apache/maven/repository/applet/ChecksumApplet.java b/maven-repository-artifact-applet/src/main/java/org/apache/maven/repository/applet/ChecksumApplet.java index 9f65f39ed..d89470d6e 100644 --- a/maven-repository-artifact-applet/src/main/java/org/apache/maven/repository/applet/ChecksumApplet.java +++ b/maven-repository-artifact-applet/src/main/java/org/apache/maven/repository/applet/ChecksumApplet.java @@ -51,13 +51,11 @@ public class ChecksumApplet add( progressBar, BorderLayout.CENTER ); JLabel label = new JLabel( "Checksum progress: " ); add( label, BorderLayout.WEST ); - setVisible( false ); } public String generateMd5( final String file ) throws IOException, NoSuchAlgorithmException { - setVisible( true ); return (String) AccessController.doPrivileged( new PrivilegedAction() { public Object run() @@ -67,10 +65,10 @@ public class ChecksumApplet MessageDigest digest = MessageDigest.getInstance( "MD5" ); long total = new File( file ).length(); - long totalRead = 0; InputStream fis = new FileInputStream( file ); try { + long totalRead = 0; byte[] buffer = new byte[CHECKSUM_BUFFER_SIZE]; int numRead; do