From 1660f62fe38427f36f2ebcede1a5b6dcefc8e70c Mon Sep 17 00:00:00 2001 From: phib Date: Wed, 10 Mar 2010 23:30:50 +0000 Subject: [PATCH] =?UTF-8?q?Process=20progress=20bar=20resource=20usage=20g?= =?UTF-8?q?rows=20over=20time,=20bug=20patch=20from=20Andr=C3=A1s=20Schmid?= =?UTF-8?q?t=20(=20rizsi=20)=20Link=20to=20SF=20Tracker:=20http://sourcefo?= =?UTF-8?q?rge.net/support/tracker.php=3Faid=3D1976854?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- client/src/org/compiere/apps/AGlassPane.java | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/client/src/org/compiere/apps/AGlassPane.java b/client/src/org/compiere/apps/AGlassPane.java index a5e0340a8b..a1a34b518b 100644 --- a/client/src/org/compiere/apps/AGlassPane.java +++ b/client/src/org/compiere/apps/AGlassPane.java @@ -126,14 +126,25 @@ public class AGlassPane extends JPanel implements MouseListener, ActionListener m_timervalue = 0; // 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(); if (!isVisible()) setVisible(true); repaint(); } // setBusyTimer - + + @Override + public void setVisible(boolean flag) { + if(!flag && m_timer != null) + { + m_timer.stop(); + } + super.setVisible(flag); + } /** * ActionListener * @param e event