Process progress bar resource usage grows over time, bug patch from András Schmidt ( rizsi )
Link to SF Tracker: http://sourceforge.net/support/tracker.php?aid=1976854
This commit is contained in:
parent
481c619b17
commit
1660f62fe3
|
@ -126,14 +126,25 @@ public class AGlassPane extends JPanel implements MouseListener, ActionListener
|
||||||
m_timervalue = 0;
|
m_timervalue = 0;
|
||||||
|
|
||||||
// Start Timer
|
// Start Timer
|
||||||
m_timer = new Timer (1000, this); // every second
|
if(m_timer == null)
|
||||||
|
{
|
||||||
|
m_timer = new Timer (1000, this); // every second
|
||||||
|
}
|
||||||
m_timer.start();
|
m_timer.start();
|
||||||
|
|
||||||
if (!isVisible())
|
if (!isVisible())
|
||||||
setVisible(true);
|
setVisible(true);
|
||||||
repaint();
|
repaint();
|
||||||
} // setBusyTimer
|
} // setBusyTimer
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void setVisible(boolean flag) {
|
||||||
|
if(!flag && m_timer != null)
|
||||||
|
{
|
||||||
|
m_timer.stop();
|
||||||
|
}
|
||||||
|
super.setVisible(flag);
|
||||||
|
}
|
||||||
/**
|
/**
|
||||||
* ActionListener
|
* ActionListener
|
||||||
* @param e event
|
* @param e event
|
||||||
|
|
Loading…
Reference in New Issue