Practica java
#3
Programación
orientada
a
objetos
II
Agustín
Barrera
Rodríguez
Practica
#3
Programación
orientada
a
objetos
II
Agustín
Barrera
Rodríguez
Practica
#3
Programación
orientada
a
objetos
II
Agustín
Barrera
Rodríguez
package gui;
import java.awt.Component; import java.sql.Date; import java.util.Vector; import javax.swing.JOptionPane; import practica3.UsuarioDao; import practica3.usuario; public class Adusuario extends javax.swing.JFrame { public String id_usuario;
/** Creates new form Adusuario */ public Adusuario() { initComponents(); }
/** This method iscalled 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") // private void initComponents() {
jLabel1 = new javax.swing.JLabel(); jLabel2 = new javax.swing.JLabel();
Practica
#3
Programación
orientada
a
objetos
II
Agustín
Barrera
Rodríguez
jLabel3 = new javax.swing.JLabel(); jLabel4 = new javax.swing.JLabel(); jLabel5 = new javax.swing.JLabel(); jLabel6 = new javax.swing.JLabel(); jLabel7 = new javax.swing.JLabel(); Boton_alta = new javax.swing.JButton(); baja = new javax.swing.JButton(); actualizar = new javax.swing.JButton(); id = new javax.swing.JTextField(); nombre =new javax.swing.JTextField(); user = new javax.swing.JTextField(); pwd = new javax.swing.JTextField(); Tusuario = new javax.swing.JComboBox(); estat = new javax.swing.JComboBox(); jLabel8 = new javax.swing.JLabel(); fecha = new javax.swing.JTextField(); jScrollPane1 = new javax.swing.JScrollPane(); tabla = new javax.swing.JTable(); consulta = new javax.swing.JButton();setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
jLabel1.setText("Administracion de Usuario");
jLabel2.setText("Id");
jLabel3.setText("Nombre");
Practica
#3
Programación
orientada
a
objetos
II
Agustín
Barrera
Rodríguez
jLabel4.setText("User");
jLabel5.setText("Password");
jLabel6.setText("Tipo Usuario");jLabel7.setText("Estatus");
Boton_alta.setText("Alta"); Boton_alta.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { Boton_altaActionPerformed(evt); } });
baja.setText("Baja"); baja.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { bajaActionPerformed(evt); }});
actualizar.setText("Actualizar"); actualizar.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { actualizarActionPerformed(evt);
Practica
#3
Programación
orientada
a
objetos
II
Agustín
Barrera
Rodríguez
} });
id.addActionListener(newjava.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { idActionPerformed(evt); } });
nombre.addActionListener(new java.awt.event.ActionListener() { public void actionPerformed(java.awt.event.ActionEvent evt) { nombreActionPerformed(evt); } });
Tusuario.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Root", "Administrador", "Visitante" }));estat.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "A", "B" }));
jLabel8.setText("Fecha");
fecha.setText("Se pone automatica");
tabla.setModel(new javax.swing.table.DefaultTableModel( new Object [][] { {null, null, null, null, null, null, null},
Practica
#3
Programación
orientada
a
objetos
II
Agustín
Barrera...
Regístrate para leer el documento completo.