summaryrefslogtreecommitdiff
path: root/altosui/AltosConfigureUI.java
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2011-04-08 19:46:15 -0700
committerKeith Packard <keithp@keithp.com>2011-04-14 09:47:09 -0700
commit5b3f18b38d80aa041b971204bf7a94278bd9584a (patch)
tree76f98b88035b0a4793da5c6096b2a99c505c6648 /altosui/AltosConfigureUI.java
parent8dd455204cf8712fa8c142b0c0517cec1bf5fd0f (diff)
altosui: Add primitive bluetooth device manager UI.
This isn't useful, but does inquire for available bluetooth devices and show them in a list. Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'altosui/AltosConfigureUI.java')
-rw-r--r--altosui/AltosConfigureUI.java17
1 files changed, 16 insertions, 1 deletions
diff --git a/altosui/AltosConfigureUI.java b/altosui/AltosConfigureUI.java
index 9a292c91..a2755a06 100644
--- a/altosui/AltosConfigureUI.java
+++ b/altosui/AltosConfigureUI.java
@@ -49,6 +49,8 @@ public class AltosConfigureUI
JRadioButton serial_debug;
+ JButton manage_bluetooth;
+
/* DocumentListener interface methods */
public void changedUpdate(DocumentEvent e) {
AltosPreferences.set_callsign(callsign_value.getText());
@@ -199,6 +201,19 @@ public class AltosConfigureUI
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() {
@@ -207,7 +222,7 @@ public class AltosConfigureUI
}
});
c.gridx = 0;
- c.gridy = 6;
+ c.gridy = 7;
c.gridwidth = 3;
c.fill = GridBagConstraints.NONE;
c.anchor = GridBagConstraints.CENTER;