daniel 7 years ago
parent
commit
382011697d
  1. 6
      designer_base/src/com/fr/design/mainframe/loghandler/LogHandlerBar.java

6
designer_base/src/com/fr/design/mainframe/loghandler/LogHandlerBar.java

@ -86,15 +86,17 @@ public class LogHandlerBar extends JPanel implements ItemSelectable {
timerPaint(); timerPaint();
} }
private static final int UNKNOWN_COUNT = 5;
public synchronized void timerPaint() { public synchronized void timerPaint() {
isWithSerious = true; isWithSerious = true;
timer = new Timer(500, null); timer = new Timer(500, null);
ActionListener taskAction = new ActionListener() { ActionListener taskAction = new ActionListener() {
public void actionPerformed(ActionEvent e) { public void actionPerformed(ActionEvent e) {
if (i < 5) { if (i < UNKNOWN_COUNT) {
isWithSerious = i % 2 == 0 ? true : false; isWithSerious = i % 2 == 0 ? true : false;
repaint(); repaint();
} else if (i == 5) { } else if (i == UNKNOWN_COUNT) {
if (timer == null) if (timer == null)
return; return;
timer.stop(); timer.stop();

Loading…
Cancel
Save