X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=altosui%2FAltosUI.java;h=033f233ca2c2f4581843870abf46b6e833e9a8f7;hb=f03ca0ab8799bfa5100eaa2577cfd7b9c37d05bf;hp=d8c8d61ce6794f8b6b4d8717c839bd2bc77dd916;hpb=225073fd822f9861a83d65386c29fda9b37bf273;p=fw%2Faltos diff --git a/altosui/AltosUI.java b/altosui/AltosUI.java index d8c8d61c..033f233c 100644 --- a/altosui/AltosUI.java +++ b/altosui/AltosUI.java @@ -137,7 +137,7 @@ public class AltosUI extends JFrame { ExportData(); } }); - b = addButton(0, 1, "Configure TeleMetrum"); + b = addButton(0, 1, "Configure Altimter"); b.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e) { ConfigureTeleMetrum(); @@ -187,6 +187,13 @@ public class AltosUI extends JFrame { } }); + b = addButton(2, 2, "Monitor Idle"); + b.addActionListener(new ActionListener() { + public void actionPerformed(ActionEvent e) { + IdleMonitor(); + } + }); + setTitle("AltOS"); pane.doLayout(); @@ -300,6 +307,13 @@ public class AltosUI extends JFrame { new AltosConfigureUI(AltosUI.this, voice); } + private void IdleMonitor() { + try { + new AltosIdleMonitorUI(this); + } catch (Exception e) { + } + } + static AltosRecordIterable open_logfile(String filename) { File file = new File (filename); try {