Package maissocial.gui

Source Code of maissocial.gui.GrauEscolarGUI

/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/

package maissocial.gui;

import java.util.logging.Level;
import java.util.logging.Logger;
import javax.swing.JOptionPane;
import maissocial.controle.Fachada;
import maissocial.entidade.GrauEscolar;

/**
*
* @author luciano
*/
public class GrauEscolarGUI {

    public static void main(String[] args){

        GrauEscolar ge = new GrauEscolar("PhD", 1);

        try {
            Fachada.getInstance().getGrauEscolarControle().salvarGrauEscolar(ge);
            JOptionPane.showMessageDialog(null, "Grau Escolar cadastrado com sucesso!");
            GrauEscolar ge2 = Fachada.getInstance().getGrauEscolarControle().pesquisarGrauEscolarPorCodigo(1);
            System.out.print(ge2.getDescricao());

        } catch (Exception ex) {
            Logger.getLogger(GrauEscolarGUI.class.getName()).log(Level.SEVERE, null, ex);
        }

    }

}
TOP

Related Classes of maissocial.gui.GrauEscolarGUI

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.