Package nz.co.abrahams.asithappens.core

Examples of nz.co.abrahams.asithappens.core.DBCreateDialog


    private JTable sessionsTable;
   
    /** Creates new MainDatabasePanel form */
    public MainSessionsPanel() throws DBException {
        //boolean attemptDatabaseCreate;
        DBCreateDialog createDialog;
        DBCreate create;
        //attemptDatabaseCreate = false;
        initComponents();
       
        /*
 
View Full Code Here


        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);
            }
        }

View Full Code Here

TOP

Related Classes of nz.co.abrahams.asithappens.core.DBCreateDialog

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.