public void initialize() { try { UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName()); } catch (Exception e) { System.err.println("Error setting LookAndFeelClassName: " + e); } // create and initialize the connectivity dbManager = new DbManager(); dbManager.openConnection(); queryManager = new QueryManager(dbManager); }
private void shutdown() { mainWindow.dispose(); dbManager.closeConnection(); }