- 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) { } catch (Exception e) {
} }
} }
// pump the percent up to 100%
setStatus(null, 100, -1L, false);
exit(0); exit(0);
} catch (Exception e) { } catch (Exception e) {
@@ -169,6 +169,7 @@ public class GetdownApplet extends JApplet
} }
@Override @Override
protected void exit (int exitCode) { protected void exit (int exitCode) {
_status.stopThrob();
_app.releaseLock(); _app.releaseLock();
_config.redirect(); _config.redirect();
} }
@@ -153,6 +153,16 @@ public class StatusPanel extends JComponent
updateStatusLabel(); updateStatusLabel();
} }
/**
* Stop the throbbing.
*/
public void stopThrob ()
{
_timer.stop();
_statusDots = 3;
updateStatusLabel();
}
@Override @Override
public void addNotify () public void addNotify ()
{ {