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();
}
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();

Loading…
Cancel
Save