diff options
author | Keith Packard <keithp@keithp.com> | 2011-08-07 14:52:29 -0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2011-08-08 12:13:29 -0700 |
commit | f03ca0ab8799bfa5100eaa2577cfd7b9c37d05bf (patch) | |
tree | 29ca769689aa936acdfaabc627993a902db8ee8b /altosui/AltosConfigureUI.java | |
parent | ba5dc35388d28c5769eaabc970c4d4b8c2c2ff9c (diff) |
altosui: Add dialogs to configure 'common' frequencies
These are stored in preferences, but not yet hooked up to the TM/TD
configure dialogs
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'altosui/AltosConfigureUI.java')
-rw-r--r-- | altosui/AltosConfigureUI.java | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/altosui/AltosConfigureUI.java b/altosui/AltosConfigureUI.java index 0f5e4a3b..a8a70ffd 100644 --- a/altosui/AltosConfigureUI.java +++ b/altosui/AltosConfigureUI.java @@ -50,6 +50,7 @@ public class AltosConfigureUI JRadioButton serial_debug; JButton manage_bluetooth; + JButton manage_frequencies; /* DocumentListener interface methods */ public void changedUpdate(DocumentEvent e) { @@ -207,13 +208,26 @@ public class AltosConfigureUI AltosBTManage.show(owner, Altos.bt_known); } }); - c.gridx = 1; + c.gridx = 0; c.gridy = 6; - c.gridwidth = 3; + c.gridwidth = 2; c.fill = GridBagConstraints.NONE; c.anchor = GridBagConstraints.WEST; pane.add(manage_bluetooth, c); + manage_frequencies = new JButton("Manage Frequencies"); + manage_frequencies.addActionListener(new ActionListener() { + public void actionPerformed(ActionEvent e) { + AltosConfigFreqUI.show(owner); + } + }); + c.gridx = 2; + c.gridy = 6; + c.gridwidth = 2; + c.fill = GridBagConstraints.NONE; + c.anchor = GridBagConstraints.WEST; + pane.add(manage_frequencies, c); + /* And a close button at the bottom */ close = new JButton("Close"); close.addActionListener(new ActionListener() { |