|
|
@ -1,24 +1,16 @@ |
|
|
|
package com.fr.design.mainframe.loghandler; |
|
|
|
package com.fr.design.mainframe.loghandler; |
|
|
|
|
|
|
|
|
|
|
|
import java.awt.Component; |
|
|
|
import com.fr.base.BaseUtils; |
|
|
|
import java.awt.Container; |
|
|
|
import com.fr.design.gui.ibutton.UIButton; |
|
|
|
import java.awt.Dimension; |
|
|
|
import com.fr.general.Inter; |
|
|
|
import java.awt.Insets; |
|
|
|
|
|
|
|
import java.awt.ItemSelectable; |
|
|
|
import javax.swing.*; |
|
|
|
import java.awt.LayoutManager; |
|
|
|
import java.awt.*; |
|
|
|
import java.awt.event.ActionEvent; |
|
|
|
import java.awt.event.ActionEvent; |
|
|
|
import java.awt.event.ActionListener; |
|
|
|
import java.awt.event.ActionListener; |
|
|
|
import java.awt.event.ItemEvent; |
|
|
|
import java.awt.event.ItemEvent; |
|
|
|
import java.awt.event.ItemListener; |
|
|
|
import java.awt.event.ItemListener; |
|
|
|
|
|
|
|
|
|
|
|
import javax.swing.BorderFactory; |
|
|
|
|
|
|
|
import javax.swing.JPanel; |
|
|
|
|
|
|
|
import javax.swing.Timer; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import com.fr.base.BaseUtils; |
|
|
|
|
|
|
|
import com.fr.design.gui.ibutton.UIButton; |
|
|
|
|
|
|
|
import com.fr.general.Inter; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public class LogHandlerBar extends JPanel implements ItemSelectable { |
|
|
|
public class LogHandlerBar extends JPanel implements ItemSelectable { |
|
|
|
|
|
|
|
|
|
|
|
private static final long serialVersionUID = 1L; |
|
|
|
private static final long serialVersionUID = 1L; |
|
|
@ -116,6 +108,9 @@ public class LogHandlerBar extends JPanel implements ItemSelectable { |
|
|
|
}; |
|
|
|
}; |
|
|
|
if (timer != null) { |
|
|
|
if (timer != null) { |
|
|
|
timer.addActionListener(taskAction); |
|
|
|
timer.addActionListener(taskAction); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
// taskAction里还有可能置空timer.
|
|
|
|
|
|
|
|
if (timer != null) { |
|
|
|
timer.start(); |
|
|
|
timer.start(); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|