X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=altosui%2FAltosLaunchUI.java;h=73fae16bf23ca3df1351cdacec507674c0048ba6;hb=34bb17bc1a3d8a1c95b5e57f059e7a1747e17a03;hp=4e630afb11045477fff135c42d32f19bc16f51c0;hpb=4568bc796a6c362ebf7f72ee9a5fa4a9a3c4ba6a;p=fw%2Faltos diff --git a/altosui/AltosLaunchUI.java b/altosui/AltosLaunchUI.java index 4e630afb..73fae16b 100644 --- a/altosui/AltosLaunchUI.java +++ b/altosui/AltosLaunchUI.java @@ -50,7 +50,7 @@ class FireButton extends JButton { } public class AltosLaunchUI - extends JDialog + extends AltosDialog implements ActionListener { AltosDevice device; @@ -164,8 +164,7 @@ public class AltosLaunchUI void launch_exception(Exception e) { if (e instanceof FileNotFoundException) { JOptionPane.showMessageDialog(owner, - String.format("Cannot open device \"%s\"", - device.toShortString()), + ((FileNotFoundException) e).getMessage(), "Cannot open target device", JOptionPane.ERROR_MESSAGE); } else if (e instanceof AltosSerialInUseException) {