altosui: Make UI Look&Feel configurable
[fw/altos] / altosui / AltosFlashUI.java
index 3874b5004995cb0269a612005b2949783f2747de..39151641e42bdbaa6bf1ef0bf93d269f8c1d9dfe 100644 (file)
@@ -29,7 +29,7 @@ import java.util.prefs.*;
 import java.util.concurrent.*;
 
 public class AltosFlashUI
-       extends JDialog
+       extends AltosDialog
        implements ActionListener
 {
        Container       pane;
@@ -200,8 +200,8 @@ public class AltosFlashUI
        void exception (Exception e) {
                if (e instanceof FileNotFoundException) {
                        JOptionPane.showMessageDialog(frame,
-                                                     "Cannot open image",
-                                                     file.toString(),
+                                                     ((FileNotFoundException) e).getMessage(),
+                                                     "Cannot open file",
                                                      JOptionPane.ERROR_MESSAGE);
                } else if (e instanceof AltosSerialInUseException) {
                        JOptionPane.showMessageDialog(frame,