Removed unused exports and finished UpdateChecker.
[FinalKeyGui.git] / src / fkgui / PermitCountDownDialog.java
index 9cd3959..666e1aa 100644 (file)
@@ -1,18 +1,11 @@
 package fkgui;
 
-import org.eclipse.swt.events.ShellEvent;
-import org.eclipse.swt.events.ShellListener;
-import org.eclipse.swt.graphics.Image;
 import org.eclipse.swt.graphics.Point;
 import org.eclipse.swt.widgets.Dialog;
 import org.eclipse.swt.widgets.Display;
 import org.eclipse.swt.widgets.Shell;
-import org.eclipse.swt.layout.FormLayout;
-import org.eclipse.wb.swt.SWTResourceManager;
 import org.eclipse.swt.widgets.Label;
 import org.eclipse.swt.SWT;
-import org.eclipse.swt.layout.FormData;
-import org.eclipse.swt.layout.FormAttachment;
 
 public class PermitCountDownDialog extends Dialog {
 
@@ -57,14 +50,11 @@ public class PermitCountDownDialog extends Dialog {
                lblMsg.setText(msg);
                
                lblTimeLeft = new Label(shell, SWT.NONE);
-               lblTimeLeft.setText("    ");
                lblTimeLeft.setBounds(48, 56, 201, 32);
                
                Animation animation = new Animation(shell, SWT.NONE, 4);
                animation.setBounds(10, 32, 32, 32);
                animation.setVisible(true);
-               animation.addFrame( SWTResourceManager.getImage("/home/dusted/Downloads/finalkey1.png") );
-               animation.addFrame( SWTResourceManager.getImage("/home/dusted/Downloads/finalkey2.png") );
                animation.setPlaying(true);
                
                
@@ -93,7 +83,7 @@ public class PermitCountDownDialog extends Dialog {
                                if( !shell.isDisposed() )
                                {
 
-                                       lblTimeLeft.setText( Math.round(msLeft/1000) + " seconds left.");
+                                       lblTimeLeft.setText( Math.round(msLeft/1000) + Messages.PermitCountDownDialog_0);
 
                                        display.update();
                                        msLeft -= 1000;