- Right before we exit let's set the progress to 100%

(launching normally stops at 99%)
- In the applet version's exit() we stop the 'throbber'.
This commit is contained in:
Ray Greenwell
2012-03-15 22:47:49 +00:00
parent 828a4638b0
commit eb2fee6b7c
3 changed files with 14 additions and 0 deletions
@@ -834,6 +834,9 @@ public abstract class Getdown extends Thread
} catch (Exception e) {
}
}
// pump the percent up to 100%
setStatus(null, 100, -1L, false);
exit(0);
} catch (Exception e) {
@@ -169,6 +169,7 @@ public class GetdownApplet extends JApplet
}
@Override
protected void exit (int exitCode) {
_status.stopThrob();
_app.releaseLock();
_config.redirect();
}
@@ -153,6 +153,16 @@ public class StatusPanel extends JComponent
updateStatusLabel();
}
/**
* Stop the throbbing.
*/
public void stopThrob ()
{
_timer.stop();
_statusDots = 3;
updateStatusLabel();
}
@Override
public void addNotify ()
{