diff options
author | Keith Packard <keithp@keithp.com> | 2013-02-10 14:18:16 -0800 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2013-02-10 14:18:16 -0800 |
commit | 504cf412e8b60b5ff2dea93ed3336f0e058dea62 (patch) | |
tree | 7cc2320a6b066d188bbb185f9b8107175b526d27 /altosui/AltosUI.java | |
parent | c2701ae646124f0668c5f2d1df3fc80f0075a9d7 (diff) |
altosui: Display callsign in connecting message window
When waiting for the remote end to respond, display the callsign along
with the frequency so that the user remembers that it's important to
set that too.
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'altosui/AltosUI.java')
-rw-r--r-- | altosui/AltosUI.java | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/altosui/AltosUI.java b/altosui/AltosUI.java index 49e3097e..a6742f2f 100644 --- a/altosui/AltosUI.java +++ b/altosui/AltosUI.java @@ -48,7 +48,7 @@ public class AltosUI extends AltosUIFrame { } catch (FileNotFoundException ee) { JOptionPane.showMessageDialog(AltosUI.this, ee.getMessage(), - "Cannot open target device", + String.format ("Cannot open %s", device.toShortString()), JOptionPane.ERROR_MESSAGE); } catch (AltosSerialInUseException si) { JOptionPane.showMessageDialog(AltosUI.this, @@ -58,17 +58,17 @@ public class AltosUI extends AltosUIFrame { JOptionPane.ERROR_MESSAGE); } catch (IOException ee) { JOptionPane.showMessageDialog(AltosUI.this, - device.toShortString(), - "Unkonwn I/O error", + String.format ("Unknown I/O error on %s", device.toShortString()), + "Unknown I/O error", JOptionPane.ERROR_MESSAGE); } catch (TimeoutException te) { JOptionPane.showMessageDialog(this, - device.toShortString(), + String.format ("Timeout on %s", device.toShortString()), "Timeout error", JOptionPane.ERROR_MESSAGE); } catch (InterruptedException ie) { JOptionPane.showMessageDialog(this, - device.toShortString(), + String.format("Interrupted %s", device.toShortString()), "Interrupted exception", JOptionPane.ERROR_MESSAGE); } |