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();
row = 0;
/* Nice label at the top */
- pane.add(new JLabel ("Configure AltOS UI"),
+ pane.add(new JLabel (label),
constraints(0, 3));
row++;
- pane.add(new JLabel (String.format("AltOS version %s", AltosUIVersion.version)),
+ pane.add(new JLabel (String.format("AltOS version %s (%smaps key)",
+ AltosUIVersion.version,
+ AltosUIVersion.has_google_maps_api_key() ? "" : "no ")),
constraints(0, 3));
row++;
setLocationRelativeTo(owner);
setVisible(true);
}
+
+ public AltosUIConfigure(JFrame in_owner) {
+ this(in_owner, "Configure AltosUI", "Configure AltOS UI");
+ }
}