doc: Add 1.9.5 release notes
[fw/altos] / altosui / AltosIdleMonitorUI.java
index 584f143a9d112f17f6e6ea80b8b8d5b534feed92..50994bb27293d55c71e3af9b5311339a49b4ffc6 100644 (file)
@@ -25,8 +25,8 @@ import javax.swing.event.*;
 import java.io.*;
 import java.util.concurrent.*;
 import java.util.Arrays;
-import org.altusmetrum.altoslib_12.*;
-import org.altusmetrum.altosuilib_12.*;
+import org.altusmetrum.altoslib_14.*;
+import org.altusmetrum.altosuilib_14.*;
 
 public class AltosIdleMonitorUI extends AltosUIFrame implements AltosFlightDisplay, AltosIdleMonitorListener, DocumentListener {
        AltosDevice             device;
@@ -226,7 +226,7 @@ public class AltosIdleMonitorUI extends AltosUIFrame implements AltosFlightDispl
                /* We let the user set the freq/callsign, so don't bother with the cancel dialog */
                link.set_cancel_enable(false);
 
-               bag = getContentPane();
+               bag = getScrollablePane();
                bag.setLayout(new GridBagLayout());
 
                setTitle(String.format("AltOS %s", device.toShortString()));
@@ -297,6 +297,8 @@ public class AltosIdleMonitorUI extends AltosUIFrame implements AltosFlightDispl
 
                thread = new AltosIdleMonitor(this, link, (boolean) remote);
 
+               thread.set_frequency(AltosUIPreferences.frequency(serial));
+
                status_update = new AltosFlightStatusUpdate(flightStatus);
 
                new javax.swing.Timer(100, status_update).start();