Package org.jdesktop.wonderland.client.assetmgr

Examples of org.jdesktop.wonderland.client.assetmgr.AssetDB$AssetDBRecord


     */
    private void checkDBException() {
        // Create an AssetDB object, which will attempt to open the DB. Upon
        // exception, launch a message dialog. Upon success, just close the
        // DB
        AssetDB assetDB = null;
        try {
            assetDB = new AssetDB();
        } catch (AssetDBException excp) {
            LOGGER.log(Level.SEVERE,
                    "Unable to connect DB, another JVM running", excp);
            String errorMessage = BUNDLE.getString("DB_ERROR");
            if (os == OS.Windows) {
                errorMessage += "\n" + BUNDLE.getString("DB_ERROR_WINDOWS");
            }
            JOptionPane.showMessageDialog(null,
                    errorMessage,
                    BUNDLE.getString("DB_ERROR_TITLE"),
                    JOptionPane.ERROR_MESSAGE);
            System.exit(1);
        }
        assetDB.disconnect();
    }
View Full Code Here

TOP

Related Classes of org.jdesktop.wonderland.client.assetmgr.AssetDB$AssetDBRecord

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.