altos: Add initial micropeak implementation
[fw/altos] / altosui / AltosCSVUI.java
index e1b6002dfa23235d08a1fb5ae4a92a537be5e15e..1d024086514e8161d91a46d2170a789940ac37c6 100644 (file)
@@ -20,16 +20,11 @@ package altosui;
 import java.awt.*;
 import java.awt.event.*;
 import javax.swing.*;
-import javax.swing.filechooser.FileNameExtensionFilter;
-import javax.swing.table.*;
 import java.io.*;
-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 +94,7 @@ public class AltosCSVUI
                                writer.close();
                        } catch (FileNotFoundException ee) {
                                JOptionPane.showMessageDialog(frame,
-                                                             file.getName(),
+                                                             ee.getMessage(),
                                                              "Cannot open file",
                                                              JOptionPane.ERROR_MESSAGE);
                        }