altosui: Stick file basename in graph window title
[fw/altos] / altosui / AltosGraphUI.java
index ac20f84b26a23ad7bfc4b22b6374348829778318..2dded9a2cfe5486c9f5fcbf837d2a35e707d51ac 100644 (file)
@@ -36,7 +36,8 @@ public class AltosGraphUI extends AltosUIFrame
                return any_gps;
        }
 
-       AltosGraphUI(AltosRecordIterable records, String file) throws InterruptedException, IOException {
+       AltosGraphUI(AltosRecordIterable records, File file) throws InterruptedException, IOException {
+               super(file.getName());
                state = null;
 
                pane = new JTabbedPane();