- pane.add(test_voice, c);
-
- /* Log directory settings */
- c.gridx = 0;
- c.gridy = 2;
- c.gridwidth = 1;
- c.fill = GridBagConstraints.NONE;
- c.anchor = GridBagConstraints.WEST;
- pane.add(new JLabel("Log Directory"), c);
-
- configure_log = new JButton(AltosPreferences.logdir().getPath());
- configure_log.addActionListener(new ActionListener() {
+ pane.add(test_voice, constraints(2, 1));
+ test_voice.setToolTipText("Play a stock audio clip to check volume");
+ row++;
+ }
+
+ public void add_callsign() {
+ /* Callsign setting */
+ pane.add(new JLabel("Callsign"), constraints(0, 1));
+
+ JTextField callsign_value = new JTextField(AltosUIPreferences.callsign());
+ callsign_value.getDocument().addDocumentListener(this);
+ callsign_value.setToolTipText("Callsign sent in packet mode");
+ pane.add(callsign_value, constraints(1, 2, GridBagConstraints.BOTH));
+ row++;
+ }
+
+ public void add_bluetooth() {
+ JButton manage_bluetooth = new JButton("Manage Bluetooth");
+ manage_bluetooth.addActionListener(new ActionListener() {