summaryrefslogtreecommitdiff
path: root/altosui
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2014-06-20 00:40:10 -0700
committerKeith Packard <keithp@keithp.com>2014-06-20 00:40:10 -0700
commit3016ee5f21ec66bf9230b90ab1420b8fad628f8d (patch)
tree39e533cea6d19daa6cc40fc08cf0eeca83fc8f2c /altosui
parent1b0f56ddb2b85b68232c22a7a8b8744cb9ad76f9 (diff)
altosuilib: Wrap radio frequency menu in JMenuBar when used in config
The device config dialogs place the radio frequency menu inside a dialog box; it needs to be inside a MenuBar to work properly, so create one to hold it. Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'altosui')
-rw-r--r--altosui/AltosConfigUI.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/altosui/AltosConfigUI.java b/altosui/AltosConfigUI.java
index 4a33b64f..a4e7aca6 100644
--- a/altosui/AltosConfigUI.java
+++ b/altosui/AltosConfigUI.java
@@ -419,7 +419,10 @@ public class AltosConfigUI
c.ipady = 5;
radio_frequency_value = new AltosFreqList();
radio_frequency_value.addItemListener(this);
- pane.add(radio_frequency_value, c);
+
+ JMenuBar menu_bar = new JMenuBar();
+ menu_bar.add(radio_frequency_value);
+ pane.add(menu_bar, c);
radio_frequency_value.setToolTipText("Telemetry, RDF and packet frequency");
row++;