power source first step
This commit is contained in:
parent
422a2808bf
commit
c61790e6bd
|
@ -14,6 +14,9 @@ import javax.swing.*;
|
||||||
import javax.swing.border.TitledBorder;
|
import javax.swing.border.TitledBorder;
|
||||||
import java.awt.*;
|
import java.awt.*;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
import java.util.concurrent.Executors;
|
||||||
|
import java.util.concurrent.ScheduledExecutorService;
|
||||||
|
import java.util.concurrent.TimeUnit;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* NetworkForm
|
* NetworkForm
|
||||||
|
@ -43,7 +46,8 @@ public class PowerSourceForm {
|
||||||
powerSourceForm = getInstance();
|
powerSourceForm = getInstance();
|
||||||
|
|
||||||
initUi();
|
initUi();
|
||||||
initInfo();
|
ScheduledExecutorService serviceStartPerSecond = Executors.newSingleThreadScheduledExecutor();
|
||||||
|
serviceStartPerSecond.scheduleAtFixedRate(PowerSourceForm::initInfo, 0, 30, TimeUnit.SECONDS);
|
||||||
}
|
}
|
||||||
|
|
||||||
private static void initUi() {
|
private static void initUi() {
|
||||||
|
|
Loading…
Reference in New Issue