altosui: Add idle monitor dialog
[fw/altos] / altosui / AltosUI.java
index d8c8d61ce6794f8b6b4d8717c839bd2bc77dd916..9b724fd7bd854c760f870e4ef48b74b6b988a385 100644 (file)
@@ -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 {