[slf4j-dev] svn commit: r973 - slf4j/trunk/slf4j-converter/src/main/java/org/slf4j/converter/internal

ceki at slf4j.org ceki at slf4j.org
Wed Feb 20 21:46:45 CET 2008


Author: ceki
Date: Wed Feb 20 21:46:45 2008
New Revision: 973

Modified:
   slf4j/trunk/slf4j-converter/src/main/java/org/slf4j/converter/internal/ProgressListenerImpl.java

Log:
- setting the progress bar to invisible and *then* setting the label text yield better results

Modified: slf4j/trunk/slf4j-converter/src/main/java/org/slf4j/converter/internal/ProgressListenerImpl.java
==============================================================================
--- slf4j/trunk/slf4j-converter/src/main/java/org/slf4j/converter/internal/ProgressListenerImpl.java	(original)
+++ slf4j/trunk/slf4j-converter/src/main/java/org/slf4j/converter/internal/ProgressListenerImpl.java	Wed Feb 20 21:46:45 2008
@@ -32,10 +32,8 @@
   }
 
   public void onDone() {
-    frame.otherLabel.setText("<html><font color='BLUE'>Scanned " + addFileCount + " java files, "+inplaceConversionCount+" files were modified.</font></html>");
-
-    System.out.println("<html><FONT COLOR=BLUE>Scanned "+addFileCount+", converted="+inplaceConversionCount);
     frame.progressBar.setVisible(false);
+    frame.otherLabel.setText("<html><font color='BLUE'>Scanned " + addFileCount + " java files, "+inplaceConversionCount+" files were modified.</font></html>");
   }
 
   public void onFileAddition(File file) {



More information about the slf4j-dev mailing list