Ejemplo n.º 1
0
 @Override
 public void actionPerformed(ActionEvent e) {
   if (e.getActionCommand().equals("PRESS_btnAdminSud")) {
     VentanaAdminSudoku.getVentana().setVisible(true);
     VentanaAdmin.getVentana().setVisible(false);
   } else if (e.getActionCommand().equals("PRESS_btnAdminLogros")) {
     try {
       VentanaAdminLogros.getVentana().setVisible(true);
       VentanaAdmin.getVentana().setVisible(false);
     } catch (ExcepcionConectarBD e1) {
       e1.printStackTrace();
     } catch (SQLException e2) {
       e2.printStackTrace();
     }
   } else if (e.getActionCommand().equals("PRESS_btnEstadisticas")) {
     VentanaEstadisticasAdministrador.getVentana().setVisible(true);
     VentanaAdmin.getVentana().setVisible(false);
   }
 }
 @Override
 public void windowClosing(WindowEvent e) {
   VentanaAdminSudoku.getVentana().dispose();
   VentanaAdmin.getVentana().setVisible(true);
 }