Package controller

Examples of controller.CandidatoController.excluir()


    CandidatoController candidatoCtrl = new CandidatoController();
    String codigoSelecionado = jTextFieldCodigoCandidato.getText();
    Object[] opcoes = {"Sim", "Não"};
    int confirma = JOptionPane.showOptionDialog(null, Strings.confirmaExcluir, Strings.tituloExcluir, JOptionPane.DEFAULT_OPTION, JOptionPane.WARNING_MESSAGE, null, opcoes, opcoes[0]);
    if (confirma == 0) {
        if (candidatoCtrl.excluir(codigoSelecionado)) {
            JOptionPane.showMessageDialog(this, Strings.operacaoSucesso);
            carregaTabela();
        } else {
            JOptionPane.showMessageDialog(this, Strings.operacaoFracasso, Strings.tituloMessage, JOptionPane.ERROR_MESSAGE);
        }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.