@Override
    public void actionPerformed(ActionEvent ae) {
        try {
            String op = ae.getActionCommand();
            
            switch(op) {
                case "Listar Documentos":
                    DAOCrlv daoCrlv = new DAOCrlv();
                    ViewGerenciarCrlvs gCrlvs = new ViewGerenciarCrlvs(daoCrlv.getListCrlvs());
                    ControllerGerenciaCrlvs conTableCrlv = new ControllerGerenciaCrlvs(gCrlvs, mw);
                    mw.getDesktop().add(gCrlvs);
                    gCrlvs.setVisible(true);
                    break;
                    
                case "AD_RB":
                    ModelSigner model = new ModelSigner();
                    ViewSigner viewSigner = new ViewSigner(model);
                    String renavam = requestCrlv();
                    
                    if(this.existeCrlv(renavam)){
                         mw.getDesktop().add(viewSigner);
                         ControllerSigner conSigner = new ControllerSigner(viewSigner, renavam, false);
                         viewSigner.setVisible(true);
                    }
                    else {
                        JOptionPane.showMessageDialog(null, "Documento não existe");
                    }
                     break; 
                    
                case "Gerar/Assinar/Gravar":
                    this.showViewGravarRecuperar();
                    
                    break;
        
            }
        } catch (KeyStoreException ex) {
            Logger.getLogger(ControllerMainFrame.class.getName()).log(Level.SEVERE, null, ex);
        } catch (SQLException ex) {
            Logger.getLogger(ControllerMainFrame.class.getName()).log(Level.SEVERE, null, ex);
        } catch (ClassNotFoundException ex) {
            Logger.getLogger(ControllerMainFrame.class.getName()).log(Level.SEVERE, null, ex);
        }
    }