DISEÑO Y PROGRAMACION CON NETBEANS DE UN FRONTEND DE LOGUEO CON JAVA Y SMBD POSTGRESQL
Enviado por jdbedoyaortiz • 23 de Septiembre de 2013 • 3.136 Palabras (13 Páginas) • 803 Visitas
DISEÑO Y PROGRAMACION CON NETBEANS DE UN FRONTEND DE LOGUEO CON JAVA Y SMBD POSTGRESQL
UNIVERSIDAD NACIONAL ABIERTA Y A DISTANCIA
ESCUELA DE CIENCIAS BASICAS TECNOLOGIA E INGENIERIA
PROGRAMA DE INGENIERIA DE SISTEMAS
CURSO DE PROGRAMACIÓN ORIENTADA A OBJETOS
TRABAJO DE RECONOCIMIENTO
BEDOYA ORTIZ JOSE DARIO
28 DE AGOSTO DE 2013
BOGOTA DC
DISEÑO Y PROGRAMACION CON NETBEANS DE UN FRONTEND DE LOGUEO CON JAVA Y SMBD POSTGRESQL
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
/*
* logsys.java
*
* Created on 24/10/2010, 01:03:07 AM
*/
package logueo;
/**
*
* @author JOSE
*/
import panelp.pprincipal;
import java.sql.*;
import javax.swing.JOptionPane;
import panelp.pprincipal.*;
public class logsys extends javax.swing.JFrame {
base.configurar.rutinas r;
pprincipal madre; //creando al menu
/** Creates new form logsys */
int permisos=0;
public logsys() {
initComponents();
this.setLocationRelativeTo(null);
madre=new pprincipal();
r= new base.configurar.rutinas();
}
/** 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() {
jButton1 = new javax.swing.JButton();
jTextField1 = new javax.swing.JTextField();
jLabel8 = new javax.swing.JLabel();
campass = new javax.swing.JPasswordField();
jLabel9 = new javax.swing.JLabel();
jMenuBar1 = new javax.swing.JMenuBar();
jMenu1 = new javax.swing.JMenu();
jMenuItem2 = new javax.swing.JMenuItem();
jMenuItem1 = new javax.swing.JMenuItem();
setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
setTitle("Acceso Restringido: Loguearse");
setLocationByPlatform(true);
setResizable(false);
jButton1.setText("Conectar");
jButton1.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton1ActionPerformed(evt);
}
});
jTextField1.addKeyListener(new java.awt.event.KeyAdapter() {
public void keyPressed(java.awt.event.KeyEvent evt) {
jTextField1KeyPressed(evt);
}
});
jLabel8.setText("Clave del Administrador");
campass.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
campassActionPerformed(evt);
}
});
campass.addKeyListener(new java.awt.event.KeyAdapter() {
public void keyPressed(java.awt.event.KeyEvent evt) {
campassKeyPressed(evt);
}
});
jLabel9.setText("Nombre de usuario");
jMenu1.setText("Control");
jMenu1.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jMenu1ActionPerformed(evt);
}
});
jMenuItem2.setText("Diseño Y Desarrollo");
jMenuItem2.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jMenuItem2ActionPerformed(evt);
}
});
jMenu1.add(jMenuItem2);
jMenuItem1.setText("Salir");
jMenu1.add(jMenuItem1);
jMenuBar1.add(jMenu1);
setJMenuBar(jMenuBar1);
javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
getContentPane().setLayout(layout);
layout.setHorizontalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addGap(20, 20, 20)
.addComponent(jLabel8))
.addGroup(layout.createSequentialGroup()
.addGap(16, 16, 16)
.addComponent(jLabel9)))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
.addComponent(jTextField1, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 120, Short.MAX_VALUE)
.addComponent(campass, javax.swing.GroupLayout.DEFAULT_SIZE, 120, Short.MAX_VALUE))
.addGap(119, 119, 119))
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
.addContainerGap(163, Short.MAX_VALUE)
.addComponent(jButton1)
.addGap(140, 140, 140))
);
layout.setVerticalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addGap(44,
...