mainAction.updateFontInformationToComponent();
//更新間隔反映
- //mainAction.updatePeriodInformationToComponent();
+ mainAction.updatePeriodInformationToComponent();
// 表示
mainAction.setTableElementHeight(Integer.parseInt( jSpinner5.getValue().toString() ));
private class TimerData {
private ScheduledFuture<?> future;
- private final ScheduledExecutorService scheduler;
+ private ScheduledExecutorService scheduler;
private final Runnable task;
private long period = 0;
private String timerID = null;
/**
* タスクの周期を更新する
* @param timerID
- * @param period
+ * @param period 周期[sec]
* @param immediatelyUpdate すぐに情報を更新するかどうか
* @return
*/
boolean found = false;
for (TimerData t : timerList) {
if (t.getTimerID().equals(timerID)) {
- t.setPeriod(period);
+ t.setPeriod(period * 1000);
t.reset( immediatelyUpdate );
found = true;
break;