diff --git a/Minimal-J/src/main/java/org/minimalj/frontend/swing/toolkit/SwingHeavyActionButton.java b/Minimal-J/src/main/java/org/minimalj/frontend/swing/toolkit/SwingHeavyActionButton.java
index <HASH>..<HASH> 100644
--- a/Minimal-J/src/main/java/org/minimalj/frontend/swing/toolkit/SwingHeavyActionButton.java
+++ b/Minimal-J/src/main/java/org/minimalj/frontend/swing/toolkit/SwingHeavyActionButton.java
@@ -7,6 +7,7 @@ import java.beans.PropertyChangeListener;
 import javax.swing.Action;

 import javax.swing.JButton;

 import javax.swing.SwingWorker;

+import javax.swing.SwingWorker.StateValue;

 

 import org.minimalj.frontend.toolkit.ProgressListener;

 

@@ -38,6 +39,8 @@ public class SwingHeavyActionButton extends JButton {
 			public void propertyChange(PropertyChangeEvent evt) {

 				if ("progress".equals(evt.getPropertyName())) {

 					progress.showProgress((Integer) evt.getNewValue(), 100);

+				} else if ("state".equals(evt.getPropertyName()) && evt.getNewValue() == StateValue.DONE) {

+					progress.showProgress(100, 100);

 				}

 			}

 		});
SwingHeavyActionButton: close waiting dialog also in case of exception