Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion src/gov/nasa/worldwind/util/StatusBar.java
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ public class StatusBar extends JPanel implements PositionListener, RenderingList
protected AtomicBoolean showNetworkStatus = new AtomicBoolean(true);
protected AtomicBoolean isNetworkAvailable = new AtomicBoolean(true);
protected Thread netCheckThread;
private Timer downloadTimer;

public StatusBar()
{
Expand All @@ -83,7 +84,7 @@ public StatusBar()
heartBeat.setHorizontalAlignment(SwingConstants.CENTER);
heartBeat.setForeground(new java.awt.Color(255, 0, 0, 0));

Timer downloadTimer = new Timer(100, new ActionListener()
downloadTimer = new Timer(100, new ActionListener()
{
public void actionPerformed(java.awt.event.ActionEvent actionEvent)
{
Expand Down Expand Up @@ -320,4 +321,9 @@ public void run()
}
});
}

public void stopDownloadTimer()
{
downloadTimer.stop();
}
}