summaryrefslogtreecommitdiff
path: root/altosuilib
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2014-06-13 22:04:57 -0700
committerKeith Packard <keithp@keithp.com>2014-06-13 22:04:57 -0700
commitbfbabfa60f3cedd994f693867bce56aad05be02a (patch)
treec5047e29a3434d7f2f7d6b8d6f36c17bdde9f69e /altosuilib
parent536db8d03aedb45698c42418c50a46d609fc98ad (diff)
telegps: Allow TeleGPS preferences to have a custom title and label
Don't just inherit the AltosUI ones Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'altosuilib')
-rw-r--r--altosuilib/AltosUIConfigure.java10
1 files changed, 7 insertions, 3 deletions
diff --git a/altosuilib/AltosUIConfigure.java b/altosuilib/AltosUIConfigure.java
index ae7626de..920ed8e2 100644
--- a/altosuilib/AltosUIConfigure.java
+++ b/altosuilib/AltosUIConfigure.java
@@ -229,8 +229,8 @@ public class AltosUIConfigure
public void add_frequencies() {
}
- public AltosUIConfigure(JFrame in_owner) {
- super(in_owner, "Configure AltosUI", false);
+ public AltosUIConfigure(JFrame in_owner, String name, String label) {
+ super(in_owner, name, false);
owner = in_owner;
pane = getContentPane();
@@ -239,7 +239,7 @@ public class AltosUIConfigure
row = 0;
/* Nice label at the top */
- pane.add(new JLabel ("Configure AltOS UI"),
+ pane.add(new JLabel (label),
constraints(0, 3));
row++;
@@ -271,4 +271,8 @@ public class AltosUIConfigure
setLocationRelativeTo(owner);
setVisible(true);
}
+
+ public AltosUIConfigure(JFrame in_owner) {
+ this(in_owner, "Configure AltosUI", "Configure AltOS UI");
+ }
}