initComponents();
}
/** Creates the database if it does not already exist. */
private void initDatabase() throws DBException {
DBCreateDialog createDialog;
//DatabaseCreate create;
DBUtil.setConnectionURL(DBUtil.getConnectionURL(true));
if (!DBUtil.databaseExists()) {
if (Configuration.getProperty("database.type").equals("mysql")) {
createDialog = new DBCreateDialog(((JFrame) (this.getParent())), true);
createDialog.setVisible(true);
} else if (Configuration.getProperty("database.type").equals("h2")) {
DBCreate.create(null, null);
}
}