- monitor = new AltosEepromMonitor(frame, Altos.ao_flight_boost, Altos.ao_flight_landed);
- monitor.addActionListener(new ActionListener() {
- public void actionPerformed(ActionEvent e) {
- if (eeprom_thread != null)
- eeprom_thread.interrupt();
- }
- });
+ monitor = new AltosEepromMonitorUI(given_frame);
+ monitor.set_states(Altos.ao_flight_boost, Altos.ao_flight_landed);
+
+ monitor.set_thread(eeprom_thread);