diff --git a/designer_base/src/com/fr/design/mainframe/loghandler/LogHandlerBar.java b/designer_base/src/com/fr/design/mainframe/loghandler/LogHandlerBar.java index b239d0954..17ba42261 100644 --- a/designer_base/src/com/fr/design/mainframe/loghandler/LogHandlerBar.java +++ b/designer_base/src/com/fr/design/mainframe/loghandler/LogHandlerBar.java @@ -86,15 +86,17 @@ public class LogHandlerBar extends JPanel implements ItemSelectable { timerPaint(); } + private static final int UNKNOWN_COUNT = 5; + public synchronized void timerPaint() { isWithSerious = true; timer = new Timer(500, null); ActionListener taskAction = new ActionListener() { public void actionPerformed(ActionEvent e) { - if (i < 5) { + if (i < UNKNOWN_COUNT) { isWithSerious = i % 2 == 0 ? true : false; repaint(); - } else if (i == 5) { + } else if (i == UNKNOWN_COUNT) { if (timer == null) return; timer.stop();