+ c.gridy = 1;
+ pane.add(frequency_label, c);
+ c.gridy = 2;
+ pane.add(telemetry_label, c);
+
+ int scanning_telemetry = AltosPreferences.scanning_telemetry();
+ telemetry_boxes = new JCheckBox[Altos.ao_telemetry_max - Altos.ao_telemetry_min + 1];
+ for (int k = Altos.ao_telemetry_min; k <= Altos.ao_telemetry_max; k++) {
+ int j = k - Altos.ao_telemetry_min;
+ telemetry_boxes[j] = new JCheckBox(Altos.ao_telemetry_name[k]);
+ c.gridy = 3 + j;
+ pane.add(telemetry_boxes[j], c);
+ telemetry_boxes[j].setActionCommand("telemetry");
+ telemetry_boxes[j].addActionListener(this);
+ telemetry_boxes[j].setSelected((scanning_telemetry & (1 << k)) != 0);
+ }