Package maissocial.gui

Source Code of maissocial.gui.SetorGUI

/*
* 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.Setor;

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

    public static void main(String[] args){

        Setor st = new Setor("T.I.", 1);

        try {
            Fachada.getInstance().getSetorControle().salvarSetor(st);
            JOptionPane.showMessageDialog(null, "Setor cadastrado com sucesso!");
            Setor st2 = Fachada.getInstance().getSetorControle().pesquisarSetorPorCodigo(1);
            System.out.print(st2.getDescricao());

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

    }

}
TOP

Related Classes of maissocial.gui.SetorGUI

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.