Sei sulla pagina 1di 15

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

java * * Created on 27/Abr/2011, 10:07:58 */ package projectofinal; import import import import java.awt.Color; javax.swing.JOptionPane; java.math.BigInteger; java.security.MessageDigest;

Templates

/** * * @author GPSI */ public class FrameInicial extends javax.swing.JFrame { int id; static MySQL connect; /** Creates new form Frame10 */ public FrameInicial() { initComponents(); //tamanho frame this.setSize(800,600); this.setResizable(false); this.setLocation(10,10); panelUtilizador1.setVisible(false); } /** This method is called from within the constructor to * initialize the form. * WARNING: Do NOT modify this code. The content of this method is * always regenerated by the Form Editor. */ @SuppressWarnings("unchecked") // <editor-fold defaultstate="collapsed" desc="Generated Code"> private void initComponents() { cu = new javax.swing.JPanel(); fundo = new javax.swing.JLayeredPane(); panelUtilizador1 = new javax.swing.JLayeredPane(); jLabel2 = new javax.swing.JLabel(); jLabel3 = new javax.swing.JLabel(); tf_user = new javax.swing.JTextField(); tf_pw = new javax.swing.JPasswordField(); jLabel4 = new javax.swing.JLabel(); cb_pf = new javax.swing.JComboBox(); Ok1 = new javax.swing.JButton(); limpar1 = new javax.swing.JButton(); si = new javax.swing.JLayeredPane();

txt = new javax.swing.JLabel(); jb_criarconta = new javax.swing.JButton(); jLabel1 = new javax.swing.JLabel(); jMenuBar1 = new javax.swing.JMenuBar(); jMenu2 = new javax.swing.JMenu(); jMenu5 = new javax.swing.JMenu(); jMenuItem4 = new javax.swing.JMenuItem(); jMenuItem26 = new javax.swing.JMenuItem(); jMenuItem5 = new javax.swing.JMenuItem(); jMenu7 = new javax.swing.JMenu(); jMenuItem1 = new javax.swing.JMenuItem(); jMenuItem3 = new javax.swing.JMenuItem(); jMenuItem9 = new javax.swing.JMenuItem(); jMenu8 = new javax.swing.JMenu(); jMenuItem10 = new javax.swing.JMenuItem(); jMenu6 = new javax.swing.JMenu(); jMenu9 = new javax.swing.JMenu(); jMenu13 = new javax.swing.JMenu(); jMenuItem7 = new javax.swing.JMenuItem(); jMenuItem18 = new javax.swing.JMenuItem(); jMenuItem2 = new javax.swing.JMenuItem(); jMenuItem6 = new javax.swing.JMenuItem(); jMenu10 = new javax.swing.JMenu(); jMenuItem8 = new javax.swing.JMenuItem(); jMenuItem11 = new javax.swing.JMenuItem(); jMenuItem12 = new javax.swing.JMenuItem(); jMenu11 = new javax.swing.JMenu(); jMenuItem15 = new javax.swing.JMenuItem(); jMenuItem16 = new javax.swing.JMenuItem(); jMenuItem17 = new javax.swing.JMenuItem(); jMenu12 = new javax.swing.JMenu(); jMenuItem13 = new javax.swing.JMenuItem(); jMenuItem14 = new javax.swing.JMenuItem(); jMenu3 = new javax.swing.JMenu(); jMenuItem21 = new javax.swing.JMenuItem(); jMenuItem27 = new javax.swing.JMenuItem(); jMenu1 = new javax.swing.JMenu(); jMenuItem19 = new javax.swing.JMenuItem(); jMenu4 = new javax.swing.JMenu(); jMenuItem20 = new javax.swing.JMenuItem(); jMenuItem22 = new javax.swing.JMenuItem(); jMenuItem23 = new javax.swing.JMenuItem(); jMenuItem24 = new javax.swing.JMenuItem(); jMenuItem25 = new javax.swing.JMenuItem(); setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE); panelUtilizador1.setBackground(new java.awt.Color(255, 204, 102)); panelUtilizador1.setBorder(javax.swing.BorderFactory.createTitledBorder( javax.swing.BorderFactory.createMatteBorder(1, 1, 1, 1, new java.awt.Color(51, 2 04, 0)), "Novo Utilizador", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATIO N, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Tahoma", 1, 14), new java.awt.Color(51, 204, 0))); // NOI18N panelUtilizador1.setFont(new java.awt.Font("Tahoma", 1, 18)); jLabel2.setFont(new java.awt.Font("Tahoma", 0, 12)); jLabel2.setForeground(new java.awt.Color(255, 255, 255)); jLabel2.setText("Username"); jLabel2.setBounds(50, 50, 70, 20); panelUtilizador1.add(jLabel2, javax.swing.JLayeredPane.DEFAULT_LAYER);

jLabel3.setFont(new java.awt.Font("Tahoma", 0, 12)); jLabel3.setForeground(new java.awt.Color(255, 255, 255)); jLabel3.setText("Password"); jLabel3.setBounds(50, 100, 70, 20); panelUtilizador1.add(jLabel3, javax.swing.JLayeredPane.DEFAULT_LAYER); tf_user.setForeground(new java.awt.Color(0, 153, 0)); tf_user.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { tf_userActionPerformed(evt); } }); tf_user.setBounds(130, 50, 90, 20); panelUtilizador1.add(tf_user, javax.swing.JLayeredPane.DEFAULT_LAYER); tf_pw.setForeground(new java.awt.Color(0, 153, 0)); tf_pw.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { tf_pwActionPerformed(evt); } }); tf_pw.setBounds(130, 100, 90, 20); panelUtilizador1.add(tf_pw, javax.swing.JLayeredPane.DEFAULT_LAYER); jLabel4.setFont(new java.awt.Font("Tahoma", 0, 12)); jLabel4.setForeground(new java.awt.Color(255, 255, 255)); jLabel4.setText("Profile"); jLabel4.setBounds(50, 150, 50, -1); panelUtilizador1.add(jLabel4, javax.swing.JLayeredPane.DEFAULT_LAYER); cb_pf.setForeground(new java.awt.Color(0, 153, 0)); cb_pf.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "- - Escolha - - -", "Admin", "Guest" })); cb_pf.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { cb_pfActionPerformed(evt); } }); cb_pf.setBounds(130, 150, 100, -1); panelUtilizador1.add(cb_pf, javax.swing.JLayeredPane.DEFAULT_LAYER); Ok1.setBackground(new java.awt.Color(0, 102, 0)); Ok1.setForeground(new java.awt.Color(204, 204, 204)); Ok1.setText("Ok"); Ok1.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { Ok1ActionPerformed(evt); } }); Ok1.setBounds(70, 210, 80, -1); panelUtilizador1.add(Ok1, javax.swing.JLayeredPane.DEFAULT_LAYER); limpar1.setBackground(new java.awt.Color(0, 102, 0)); limpar1.setForeground(new java.awt.Color(204, 204, 204)); limpar1.setText("Limpar"); limpar1.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { limpar1ActionPerformed(evt); }

}); limpar1.setBounds(180, 210, 80, -1); panelUtilizador1.add(limpar1, javax.swing.JLayeredPane.DEFAULT_LAYER); panelUtilizador1.setBounds(120, 30, 320, 280); fundo.add(panelUtilizador1, javax.swing.JLayeredPane.DEFAULT_LAYER); si.setBackground(new java.awt.Color(255, 204, 102)); si.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "Nova Co nta", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border. TitledBorder.DEFAULT_POSITION, new java.awt.Font("Tahoma", 1, 14), new java.awt. Color(51, 204, 0))); // NOI18N si.setForeground(new java.awt.Color(51, 204, 0)); si.setFont(new java.awt.Font("Tahoma", 0, 14)); txt.setFont(new java.awt.Font("Tahoma", 0, 14)); txt.setForeground(new java.awt.Color(255, 255, 255)); txt.setText("Click aqui para criar um novo Utilizador"); txt.setBounds(10, 20, 235, 30); si.add(txt, javax.swing.JLayeredPane.DEFAULT_LAYER); jb_criarconta.setBackground(new java.awt.Color(0, 102, 0)); jb_criarconta.setForeground(new java.awt.Color(204, 204, 204)); jb_criarconta.setText("Criar"); jb_criarconta.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jb_criarcontaActionPerformed(evt); } }); jb_criarconta.setBounds(100, 70, 70, 23); si.add(jb_criarconta, javax.swing.JLayeredPane.DEFAULT_LAYER); si.setBounds(510, 20, 250, 120); fundo.add(si, javax.swing.JLayeredPane.DEFAULT_LAYER); jLabel1.setFont(new java.awt.Font("Tahoma", 0, 14)); jLabel1.setIcon(new javax.swing.ImageIcon("C:\\Documents and Settings\\A dy\\Os meus documentos\\java\\ProjectoFinal_java\\ProjectoFinal\\src\\projectofi nal\\fundoGP.gif")); // NOI18N jLabel1.setBounds(0, 0, 800, 500); fundo.add(jLabel1, javax.swing.JLayeredPane.DEFAULT_LAYER); javax.swing.GroupLayout cuLayout = new javax.swing.GroupLayout(cu); cu.setLayout(cuLayout); cuLayout.setHorizontalGroup( cuLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADI NG) .addComponent(fundo, javax.swing.GroupLayout.DEFAULT_SIZE, 800, Shor t.MAX_VALUE) ); cuLayout.setVerticalGroup( cuLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADI NG) .addGroup(cuLayout.createSequentialGroup() .addComponent(fundo, javax.swing.GroupLayout.PREFERRED_SIZE, 501 , javax.swing.GroupLayout.PREFERRED_SIZE) .addContainerGap(99, Short.MAX_VALUE)) ); jMenuBar1.setBackground(new java.awt.Color(0, 153, 51));

jMenu2.setBackground(new java.awt.Color(0, 153, 51)); jMenu2.setText("Menu"); jMenu5.setText("Lanmento"); jMenuItem4.setText("Curso"); jMenuItem4.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItem4ActionPerformed(evt); } }); jMenu5.add(jMenuItem4); jMenuItem26.setText("Modulo"); jMenuItem26.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItem26ActionPerformed(evt); } }); jMenu5.add(jMenuItem26); jMenuItem5.setText("Candidatura"); jMenuItem5.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItem5ActionPerformed(evt); } }); jMenu5.add(jMenuItem5); jMenu7.setText("Formando"); jMenuItem1.setText("Lanar Formando"); jMenuItem1.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItem1ActionPerformed(evt); } }); jMenu7.add(jMenuItem1); jMenuItem3.setText("Faltas"); jMenuItem3.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItem3ActionPerformed(evt); } }); jMenu7.add(jMenuItem3); jMenuItem9.setText("Notas"); jMenuItem9.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItem9ActionPerformed(evt); } }); jMenu7.add(jMenuItem9); jMenu5.add(jMenu7); jMenu8.setText("Formadores");

jMenuItem10.setText("Cadastrar"); jMenuItem10.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItem10ActionPerformed(evt); } }); jMenu8.add(jMenuItem10); jMenu5.add(jMenu8); jMenu2.add(jMenu5); jMenu6.setText("Consulta"); jMenu9.setText("Formandos"); jMenu13.setText("Formando"); jMenu13.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenu13ActionPerformed(evt); } }); jMenuItem7.setText("Simples"); jMenuItem7.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItem7ActionPerformed(evt); } }); jMenu13.add(jMenuItem7); jMenuItem18.setText("Avamada"); jMenuItem18.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItem18ActionPerformed(evt); } }); jMenu13.add(jMenuItem18); jMenu9.add(jMenu13); jMenuItem2.setText("Faltas"); jMenuItem2.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItem2ActionPerformed(evt); } }); jMenu9.add(jMenuItem2); jMenuItem6.setText("Notas"); jMenuItem6.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItem6ActionPerformed(evt); } }); jMenu9.add(jMenuItem6); jMenu6.add(jMenu9); jMenu10.setText("Formadores");

jMenuItem8.setText("Consulta Simples"); jMenu10.add(jMenuItem8); jMenuItem11.setText("Consulta A vanada"); jMenu10.add(jMenuItem11); jMenuItem12.setText("Listar Todos"); jMenu10.add(jMenuItem12); jMenu6.add(jMenu10); jMenu11.setText("Curso"); jMenu11.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenu11ActionPerformed(evt); } }); jMenuItem15.setText("Pesquisa total Curso"); jMenu11.add(jMenuItem15); jMenuItem16.setText("Pesquisa Simples"); jMenuItem16.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItem16ActionPerformed(evt); } }); jMenu11.add(jMenuItem16); jMenuItem17.setText("Pesquisa Avanada"); jMenuItem17.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItem17ActionPerformed(evt); } }); jMenu11.add(jMenuItem17); jMenu6.add(jMenu11); jMenu12.setText("Candidatura"); jMenuItem13.setText("Formando Candidatados"); jMenuItem13.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItem13ActionPerformed(evt); } }); jMenu12.add(jMenuItem13); jMenuItem14.setText("Formadores Candidatados"); jMenuItem14.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItem14ActionPerformed(evt); } }); jMenu12.add(jMenuItem14); jMenu6.add(jMenu12);

jMenu2.add(jMenu6); jMenu3.setText("Novo"); jMenuItem21.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.e vent.KeyEvent.VK_U, java.awt.event.InputEvent.SHIFT_MASK java.awt.event.InputE vent.CTRL_MASK)); jMenuItem21.setText("Utilizador"); jMenuItem21.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItem21ActionPerformed(evt); } }); jMenu3.add(jMenuItem21); jMenu2.add(jMenu3); jMenuItem27.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.e vent.KeyEvent.VK_F4, java.awt.event.InputEvent.ALT_MASK)); jMenuItem27.setText("Sair"); jMenuItem27.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItem27ActionPerformed(evt); } }); jMenu2.add(jMenuItem27); jMenuBar1.add(jMenu2); jMenu1.setText("Sobre"); jMenuItem19.setText("Gesto Pedaggica"); jMenu1.add(jMenuItem19); jMenu4.setText("Autores"); jMenuItem20.setText("Valdir Fortes "); jMenuItem20.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItem20ActionPerformed(evt); } }); jMenu4.add(jMenuItem20); jMenuItem22.setText("Edmilson Tavarres"); jMenuItem22.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItem22ActionPerformed(evt); } }); jMenu4.add(jMenuItem22); jMenuItem23.setText("Germindo Furtado"); jMenuItem23.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItem23ActionPerformed(evt); } }); jMenu4.add(jMenuItem23);

jMenuItem24.setText("Carlos Fernandes"); jMenuItem24.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItem24ActionPerformed(evt); } }); jMenu4.add(jMenuItem24); jMenuItem25.setText("Evaristo Robalo"); jMenuItem25.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { jMenuItem25ActionPerformed(evt); } }); jMenu4.add(jMenuItem25); jMenu1.add(jMenu4); jMenuBar1.add(jMenu1); setJMenuBar(jMenuBar1); javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentP ane()); getContentPane().setLayout(layout); layout.setHorizontalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING ) .addComponent(cu, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing. GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) ); layout.setVerticalGroup( layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING ) .addGroup(layout.createSequentialGroup() .addComponent(cu, javax.swing.GroupLayout.PREFERRED_SIZE, javax. swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE) .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX _VALUE)) ); pack(); }// </editor-fold> private void jb_criarcontaActionPerformed(java.awt.event.ActionEvent evt) { // TODO add your handling code here: // new CriarConta().setVisible(true); panelUtilizador1.setVisible(true); } private void tf_userActionPerformed(java.awt.event.ActionEvent evt) { // TODO add your handling code here: } private void tf_pwActionPerformed(java.awt.event.ActionEvent evt) { // TODO add your handling code here: }

private void cb_pfActionPerformed(java.awt.event.ActionEvent evt) { // TODO add your handling code here: } private void Ok1ActionPerformed(java.awt.event.ActionEvent evt) { String us=tf_user.getText(); String passw=tf_pw.getText(); String perfil=cb_pf.getSelectedItem().toString();

if((us.equals("") passw.equals("") cb_pf.getSelectedIndex()==0)){ if(us.equals("")); tf_user.setBackground(Color.red); if(passw.equals("")) tf_pw.setBackground(Color.red); if(cb_pf.getSelectedIndex()==0) cb_pf.setBackground(Color.red); JOptionPane.showMessageDialog(rootPane, "Os campos assinalados tem q ue ser Prenchidos","Prencher campos",JOptionPane.ERROR_MESSAGE); }else{ try{ MessageDigest ps=MessageDigest.getInstance("MD5"); ps.update(passw.getBytes(),0,passw.length()); passw=new BigInteger(1,ps.digest()).toString(16); }catch(Exception er){ er.printStackTrace(); } String query1="insert into user values ('"+id+"','"+us+"','"+passw+" ','"+perfil+"')"; int rs1=-1; connect =new MySQL("localhost","gestaop","root",""); if(connect.connect()){ rs1 = connect.inserir(query1); if(rs1!=-1) { JOptionPane.showMessageDialog(rootPane,"operao executado com suces so","sucesso",JOptionPane.INFORMATION_MESSAGE); }else{ JOptionPane.showMessageDialog(rootPane,"falha na execuo do query", "falha",JOptionPane.ERROR_MESSAGE); } } } } private void limpar1ActionPerformed(java.awt.event.ActionEvent evt) { tf_user.setText("");

tf_user.setBackground(Color.white); tf_pw.setText(""); tf_pw.setBackground(Color.white); cb_pf.setSelectedIndex(0); cb_pf.setBackground(Color.white); } private void jMenuItem4ActionPerformed(java.awt.event.ActionEvent evt) { this.dispose(); new LancCurso().setVisible(true); } private void jMenuItem26ActionPerformed(java.awt.event.ActionEvent evt) { this.dispose(); new lacamentomodulo().setVisible(true); } private void jMenuItem5ActionPerformed(java.awt.event.ActionEvent evt) { this.dispose(); new LancCanditatura().setVisible(true); } private void jMenuItem1ActionPerformed(java.awt.event.ActionEvent evt) { this.dispose(); new CadastrarFormandos().setVisible(true); } private void jMenuItem3ActionPerformed(java.awt.event.ActionEvent evt) { this.dispose(); new LancFaltasFormando().setVisible(true); } private void jMenuItem9ActionPerformed(java.awt.event.ActionEvent evt) { this.dispose(); new LancNotaFormando().setVisible(true); } private void jMenuItem10ActionPerformed(java.awt.event.ActionEvent evt) { this.dispose(); new CadastrarFormadores11().setVisible(true); } private void jMenuItem7ActionPerformed(java.awt.event.ActionEvent evt) {

this.dispose(); new PesquisaSimples().setVisible(true); } private void jMenuItem18ActionPerformed(java.awt.event.ActionEvent evt) { this.dispose(); new PesquisaAvanada().setVisible(true); } private void jMenu13ActionPerformed(java.awt.event.ActionEvent evt) { this.dispose(); new PesquisaSimples().setVisible(true); } private void jMenuItem2ActionPerformed(java.awt.event.ActionEvent evt) { this.dispose(); new PesquisaFalta().setVisible(true); } private void jMenuItem6ActionPerformed(java.awt.event.ActionEvent evt) { this.dispose(); new PesquisaNota().setVisible(true); } private void jMenuItem16ActionPerformed(java.awt.event.ActionEvent evt) { this.dispose(); new PesquisaSimplesCurso().setVisible(true); } private void jMenuItem17ActionPerformed(java.awt.event.ActionEvent evt) { this.dispose(); new PesquisaAvanadaCurso().setVisible(true); } private void jMenu11ActionPerformed(java.awt.event.ActionEvent evt) { this.dispose(); new PesquisaFormandosCandidatados().setVisible(true); } private void jMenuItem13ActionPerformed(java.awt.event.ActionEvent evt) { this.dispose(); new PesquisaFormandosCandidatados().setVisible(true); } private void jMenuItem14ActionPerformed(java.awt.event.ActionEvent evt)

{ // TODO add your handling code here: } private void jMenuItem20ActionPerformed(java.awt.event.ActionEvent evt) { this.dispose(); new Valdir().setVisible(true); } private void jMenuItem22ActionPerformed(java.awt.event.ActionEvent evt) { this.dispose(); new Edmilson().setVisible(true); } private void jMenuItem23ActionPerformed(java.awt.event.ActionEvent evt) {

this.dispose(); new Germindo().setVisible(true); } private void jMenuItem24ActionPerformed(java.awt.event.ActionEvent evt) { this.dispose(); new Carlos().setVisible(true); } private void jMenuItem25ActionPerformed(java.awt.event.ActionEvent evt) { this.dispose(); new Evaristo().setVisible(true); } private void jMenuItem27ActionPerformed(java.awt.event.ActionEvent evt) { //Sair this.dispose(); new menu().setVisible(true); } private void jMenuItem21ActionPerformed(java.awt.event.ActionEvent evt) { this.dispose(); new FrameInicial().setVisible(true); } /** * @param args the command line arguments */ public static void main(String args[]) { java.awt.EventQueue.invokeLater(new Runnable() { public void run() {

new FrameInicial().setVisible(true); } }); } // Variables declaration - do not modify private javax.swing.JButton Ok1; private javax.swing.JComboBox cb_pf; private javax.swing.JPanel cu; private javax.swing.JLayeredPane fundo; private javax.swing.JLabel jLabel1; private javax.swing.JLabel jLabel2; private javax.swing.JLabel jLabel3; private javax.swing.JLabel jLabel4; private javax.swing.JMenu jMenu1; private javax.swing.JMenu jMenu10; private javax.swing.JMenu jMenu11; private javax.swing.JMenu jMenu12; private javax.swing.JMenu jMenu13; private javax.swing.JMenu jMenu2; private javax.swing.JMenu jMenu3; private javax.swing.JMenu jMenu4; private javax.swing.JMenu jMenu5; private javax.swing.JMenu jMenu6; private javax.swing.JMenu jMenu7; private javax.swing.JMenu jMenu8; private javax.swing.JMenu jMenu9; private javax.swing.JMenuBar jMenuBar1; private javax.swing.JMenuItem jMenuItem1; private javax.swing.JMenuItem jMenuItem10; private javax.swing.JMenuItem jMenuItem11; private javax.swing.JMenuItem jMenuItem12; private javax.swing.JMenuItem jMenuItem13; private javax.swing.JMenuItem jMenuItem14; private javax.swing.JMenuItem jMenuItem15; private javax.swing.JMenuItem jMenuItem16; private javax.swing.JMenuItem jMenuItem17; private javax.swing.JMenuItem jMenuItem18; private javax.swing.JMenuItem jMenuItem19; private javax.swing.JMenuItem jMenuItem2; private javax.swing.JMenuItem jMenuItem20; private javax.swing.JMenuItem jMenuItem21; private javax.swing.JMenuItem jMenuItem22; private javax.swing.JMenuItem jMenuItem23; private javax.swing.JMenuItem jMenuItem24; private javax.swing.JMenuItem jMenuItem25; private javax.swing.JMenuItem jMenuItem26; private javax.swing.JMenuItem jMenuItem27; private javax.swing.JMenuItem jMenuItem3; private javax.swing.JMenuItem jMenuItem4; private javax.swing.JMenuItem jMenuItem5; private javax.swing.JMenuItem jMenuItem6; private javax.swing.JMenuItem jMenuItem7; private javax.swing.JMenuItem jMenuItem8; private javax.swing.JMenuItem jMenuItem9; private javax.swing.JButton jb_criarconta; private javax.swing.JButton limpar1; private javax.swing.JLayeredPane panelUtilizador1; private javax.swing.JLayeredPane si; private javax.swing.JPasswordField tf_pw;

private javax.swing.JTextField tf_user; private javax.swing.JLabel txt; // End of variables declaration }

Potrebbero piacerti anche