JRadioButton serial_debug;
+ JButton manage_bluetooth;
+
/* DocumentListener interface methods */
public void changedUpdate(DocumentEvent e) {
AltosPreferences.set_callsign(callsign_value.getText());
c.anchor = GridBagConstraints.CENTER;
pane.add(new JLabel ("Configure AltOS UI"), c);
- /* Voice settings */
c.gridx = 0;
c.gridy = 1;
+ c.gridwidth = 3;
+ c.fill = GridBagConstraints.NONE;
+ c.anchor = GridBagConstraints.CENTER;
+ pane.add(new JLabel (String.format("AltOS version %s", AltosVersion.version)), c);
+
+ /* Voice settings */
+ c.gridx = 0;
+ c.gridy = 2;
c.gridwidth = 1;
c.fill = GridBagConstraints.NONE;
c.anchor = GridBagConstraints.WEST;
}
});
c.gridx = 1;
- c.gridy = 1;
+ c.gridy = 2;
c.gridwidth = 1;
c.weightx = 1;
c.fill = GridBagConstraints.NONE;
pane.add(enable_voice, c);
c.gridx = 2;
- c.gridy = 1;
+ c.gridy = 2;
c.gridwidth = 1;
c.weightx = 1;
c.fill = GridBagConstraints.NONE;
/* Log directory settings */
c.gridx = 0;
- c.gridy = 2;
+ c.gridy = 3;
c.gridwidth = 1;
c.fill = GridBagConstraints.NONE;
c.anchor = GridBagConstraints.WEST;
}
});
c.gridx = 1;
- c.gridy = 2;
+ c.gridy = 3;
c.gridwidth = 2;
c.fill = GridBagConstraints.BOTH;
c.anchor = GridBagConstraints.WEST;
/* Callsign setting */
c.gridx = 0;
- c.gridy = 3;
+ c.gridy = 4;
c.gridwidth = 1;
c.fill = GridBagConstraints.NONE;
c.anchor = GridBagConstraints.WEST;
callsign_value = new JTextField(AltosPreferences.callsign());
callsign_value.getDocument().addDocumentListener(this);
c.gridx = 1;
- c.gridy = 3;
+ c.gridy = 4;
c.gridwidth = 2;
c.fill = GridBagConstraints.BOTH;
c.anchor = GridBagConstraints.WEST;
/* Serial debug setting */
c.gridx = 0;
- c.gridy = 4;
+ c.gridy = 5;
c.gridwidth = 1;
c.fill = GridBagConstraints.NONE;
c.anchor = GridBagConstraints.WEST;
});
c.gridx = 1;
- c.gridy = 4;
+ c.gridy = 5;
c.gridwidth = 3;
c.fill = GridBagConstraints.NONE;
c.anchor = GridBagConstraints.WEST;
pane.add(serial_debug, c);
+ manage_bluetooth = new JButton("Manage Bluetooth");
+ manage_bluetooth.addActionListener(new ActionListener() {
+ public void actionPerformed(ActionEvent e) {
+ new AltosBTManage(AltosBTDevice.bt_product_any, owner);
+ }
+ });
+ c.gridx = 1;
+ c.gridy = 6;
+ c.gridwidth = 3;
+ c.fill = GridBagConstraints.NONE;
+ c.anchor = GridBagConstraints.WEST;
+ pane.add(manage_bluetooth, c);
+
/* And a close button at the bottom */
close = new JButton("Close");
close.addActionListener(new ActionListener() {
}
});
c.gridx = 0;
- c.gridy = 5;
+ c.gridy = 7;
c.gridwidth = 3;
c.fill = GridBagConstraints.NONE;
c.anchor = GridBagConstraints.CENTER;