Examples of DbSettingsDlg


Examples of org.photovault.swingui.db.DbSettingsDlg

        // 100 MB tile cache
        JaiInitializer.initJAI();
        PhotovaultSettings settings = PhotovaultSettings.getSettings();
        Collection databases = settings.getDatabases();
        if ( databases.size() == 0 ) {
            DbSettingsDlg dlg = new DbSettingsDlg( null, true );
            if ( dlg.showDialog() != dlg.APPROVE_OPTION ) {
                System.exit( 0 );
            }
        }
    
  LoginDlg login = new LoginDlg( this );
        boolean loginOK = false;
        while ( !loginOK ) {
  int retval = login.showDialog();
            switch( retval ) {
                case LoginDlg.RETURN_REASON_CANCEL:
                    System.exit( 0 );
                    break;
                case LoginDlg.RETURN_REASON_NEWDB:
                    DbSettingsDlg dlg = new DbSettingsDlg( null, true );
                    if ( dlg.showDialog() == dlg.APPROVE_OPTION ) {
                        login = new LoginDlg( this );
                    }
                    break;
                case LoginDlg.RETURN_REASON_APPROVE:
                    try {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.