[Schmitzm-commits] r2372 - trunk/schmitzm-core/src/main/java/de/schmitzm/swing

scm-commit at wald.intevation.org scm-commit at wald.intevation.org
Fri Jul 26 16:53:45 CEST 2013


Author: mojays
Date: 2013-07-26 16:53:45 +0200 (Fri, 26 Jul 2013)
New Revision: 2372

Modified:
   trunk/schmitzm-core/src/main/java/de/schmitzm/swing/ProgressBarWithText.java
Log:
ProgressBarWithText: consider label visibility during paintComponent(.)

Modified: trunk/schmitzm-core/src/main/java/de/schmitzm/swing/ProgressBarWithText.java
===================================================================
--- trunk/schmitzm-core/src/main/java/de/schmitzm/swing/ProgressBarWithText.java	2013-07-26 14:08:41 UTC (rev 2371)
+++ trunk/schmitzm-core/src/main/java/de/schmitzm/swing/ProgressBarWithText.java	2013-07-26 14:53:45 UTC (rev 2372)
@@ -91,7 +91,9 @@
     g = g.create();
 //    g.setXORMode(getBackground());
     g.translate(5, 0);
-    label.setSize(getSize());
-    label.paint(g);
+    if ( label.isVisible() ) {
+      label.setSize(getSize());
+      label.paint(g);
+    }
   }
 }



More information about the Schmitzm-commits mailing list