changeset 1773:eea63cb6a8c8

Display wait cursor when finishing setup Reviewed-by: jerboaa Review-thread: http://icedtea.classpath.org/pipermail/thermostat/2015-September/015794.html PR2581
author Andrew Azores <aazores@redhat.com>
date Fri, 04 Sep 2015 11:03:35 -0400
parents e7ddc7a848df
children 95855156af9e
files setup/command/src/main/java/com/redhat/thermostat/setup/command/internal/SetupWindow.java
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/setup/command/src/main/java/com/redhat/thermostat/setup/command/internal/SetupWindow.java	Fri Sep 04 10:21:22 2015 -0400
+++ b/setup/command/src/main/java/com/redhat/thermostat/setup/command/internal/SetupWindow.java	Fri Sep 04 11:03:35 2015 -0400
@@ -37,6 +37,7 @@
 package com.redhat.thermostat.setup.command.internal;
 
 import java.awt.BorderLayout;
+import java.awt.Cursor;
 import java.awt.Font;
 import java.awt.GridBagConstraints;
 import java.awt.GridBagLayout;
@@ -250,6 +251,7 @@
         finishAction = new SwingWorker<IOException, Void>() {
             @Override
             public IOException doInBackground() {
+                frame.setCursor(Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR));
                 mongoUserSetupView.disableButtons();
                 userPropertiesView.disableButtons();
                 thermostatSetup.createMongodbUser(storageUsername, storagePassword);
@@ -268,6 +270,7 @@
             public void done() {
                 mongoUserSetupView.enableButtons();
                 userPropertiesView.enableButtons();
+                frame.setCursor(Cursor.getDefaultCursor());
                 shutdown();
             }
         };