use of net.parostroj.timetable.model.ls.LSFileFactory in project grafikon by jub77.
the class MainFrame method aboutMenuItemActionPerformed.
private void aboutMenuItemActionPerformed(java.awt.event.ActionEvent evt) {
// show about dialog
ResourceBundle aboutBundle = ResourceBundle.getBundle("about");
LSFileFactory f = LSFileFactory.getInstance();
LSFile fls = null;
try {
fls = f.createForSave();
} catch (LSException e) {
log.warn("Cannot create FileLoadSave", e);
}
AboutDialog dialog = new AboutDialog(this, true, String.format(aboutBundle.getString("text"), model.getVersionInfo().getVersion(), fls == null ? "-" : fls.getSaveVersion()), getClass().getResource(aboutBundle.getString("image")), true, model.getVersionInfo());
dialog.setLocationRelativeTo(this);
dialog.setVisible(true);
dialog.dispose();
}
Aggregations