JLabel callsign_label;
JTextField callsign_value;
+ JRadioButton imperial_units;
+
JLabel font_size_label;
JComboBox font_size_value;
pane.add(callsign_value, c);
callsign_value.setToolTipText("Callsign sent in packet mode");
+ /* Imperial units setting */
+ c.gridx = 0;
+ c.gridy = row;
+ c.gridwidth = 1;
+ c.fill = GridBagConstraints.NONE;
+ c.anchor = GridBagConstraints.WEST;
+ pane.add(new JLabel("Imperial Units"), c);
+
+ imperial_units = new JRadioButton("Enable", AltosUIPreferences.serial_debug());
+ imperial_units.addActionListener(new ActionListener() {
+ public void actionPerformed(ActionEvent e) {
+ JRadioButton item = (JRadioButton) e.getSource();
+ boolean enabled = item.isSelected();
+ AltosUIPreferences.set_imperial_units(enabled);
+ }
+ });
+ imperial_units.setToolTipText("Use Imperial units instead of metric");
+
+ c.gridx = 1;
+ c.gridy = row++;
+ c.gridwidth = 3;
+ c.fill = GridBagConstraints.NONE;
+ c.anchor = GridBagConstraints.WEST;
+ pane.add(imperial_units, c);
+
/* Font size setting */
c.gridx = 0;
c.gridy = row;
final UIManager.LookAndFeelInfo[] look_and_feels = UIManager.getInstalledLookAndFeels();
- System.out.printf("look_and_feels %d\n", look_and_feels.length);
look_and_feel_value = new JComboBox(look_and_feels);
DelegatingRenderer.install(look_and_feel_value);
manage_bluetooth = new JButton("Manage Bluetooth");
manage_bluetooth.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
- AltosBTManage.show(owner, Altos.bt_known);
+ AltosBTManage.show(owner, AltosBTKnown.bt_known());
}
});
c.gridx = 0;