Example #1
0
 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);
 }
Example #2
0
 private void shutdown() {
   mainWindow.dispose();
   dbManager.closeConnection();
 }