Reverted package name to 'altosui' from 'AltosUI'
[fw/altos] / altosui / AltosCSVUI.java
index e1b6002dfa23235d08a1fb5ae4a92a537be5e15e..2702668bfb9fdf768c9b2ced2702530c20aebc88 100644 (file)
@@ -27,9 +27,10 @@ import java.util.*;
 import java.text.*;
 import java.util.prefs.*;
 import java.util.concurrent.LinkedBlockingQueue;
+import org.altusmetrum.AltosLib.*;
 
 public class AltosCSVUI
-       extends JDialog
+       extends AltosDialog
        implements ActionListener
 {
        JFileChooser            csv_chooser;
@@ -99,7 +100,7 @@ public class AltosCSVUI
                                writer.close();
                        } catch (FileNotFoundException ee) {
                                JOptionPane.showMessageDialog(frame,
-                                                             file.getName(),
+                                                             ee.getMessage(),
                                                              "Cannot open file",
                                                              JOptionPane.ERROR_MESSAGE);
                        }