Makes it easier to tell multiple windows apart
Signed-off-by: Keith Packard <keithp@keithp.com>
}
}
- public AltosGraphUI(AltosRecordIterable records) throws InterruptedException, IOException {
- super("Altos Graph");
+ public AltosGraphUI(AltosRecordIterable records, String name) throws InterruptedException, IOException {
+ super(String.format("Altos Graph %s", name));
AltosDataPointReader reader = new AltosDataPointReader (records);
if (reader == null)
throw new FileNotFoundException();
}
try {
- new AltosGraphUI(records);
+ new AltosGraphUI(records, filename);
} catch (InterruptedException ie) {
} catch (IOException ie) {
}
if (record_reader == null)
return;
try {
- new AltosGraphUI(record_reader);
+ new AltosGraphUI(record_reader, chooser.filename());
} catch (InterruptedException ie) {
} catch (IOException ie) {
}