package Boundary;
import Entity.Usuario;
import java.util.ArrayList;
import Control.CrearCuenta;
import Entity.Equipomasfull;
import Control.Login;
import DAO.UsuarioDAO;
import java.awt.Color;
import java.util.List;
import javax.swing.JOptionPane;
public class NuevoUsuario extends javax.swing.JPanel {
public NuevoUsuario() {
initComponents();
}
//private Equipomasfull sistema = Login.sistema;
@SuppressWarnings("unchecked")
// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
private void initComponents() {
identificacionL = new javax.swing.JLabel();
nombreL = new javax.swing.JLabel();
apellidoL = new javax.swing.JLabel();
direccionL = new javax.swing.JLabel();
jLabel5 = new javax.swing.JLabel();
telefonoL = new javax.swing.JLabel();
celularL = new javax.swing.JLabel();
tipoL = new javax.swing.JLabel();
placaL = new javax.swing.JLabel();
jLabel10 = new javax.swing.JLabel();
identificacionTF = new javax.swing.JTextField();
nombreTF = new javax.swing.JTextField();
apellidoTF = new javax.swing.JTextField();
direccionTF = new javax.swing.JTextField();
telefonoTF = new javax.swing.JTextField();
puntosTF = new javax.swing.JTextField();
correoTF = new javax.swing.JTextField();
celularTF = new javax.swing.JTextField();
placaTF = new javax.swing.JTextField();
tipovehCB = new javax.swing.JComboBox();
aceptarB = new javax.swing.JButton();
jLabel11 = new javax.swing.JLabel();
tipovehCB1 = new javax.swing.JComboBox();
jLabel12 = new javax.swing.JLabel();
placaTF1 = new javax.swing.JTextField();
jLabel13 = new javax.swing.JLabel();
tipovehCB2 = new javax.swing.JComboBox();
jLabel14 = new javax.swing.JLabel();
placaTF2 = new javax.swing.JTextField();
codigoL = new javax.swing.JLabel();
codigoTF = new javax.swing.JTextField();
jLabel1 = new javax.swing.JLabel();
jLabel2 = new javax.swing.JLabel();
operacion = new javax.swing.JLabel();
identificacionL.setText("Identificación*");
nombreL.setText("Nombres*");
apellidoL.setText("Apellidos*");
direccionL.setText("Dirección*");
jLabel5.setText("Correo");
telefonoL.setText("Teléfono*");
celularL.setText("Celular*");
tipoL.setText("Tipo de vehículo");
placaL.setText("Placa*");
jLabel10.setText("Puntos");
identificacionTF.setText("00000");
identificacionTF.setToolTipText("Cedula del Cliente");
identificacionTF.addMouseListener(new java.awt.event.MouseAdapter() {
public void mouseClicked(java.awt.event.MouseEvent evt) {
identificacionTFMouseClicked(evt);
}
});
identificacionTF.addKeyListener(new java.awt.event.KeyAdapter() {
public void keyTyped(java.awt.event.KeyEvent evt) {
identificacionTFKeyTyped(evt);
}
});
nombreTF.setText("XXXXX");
nombreTF.setToolTipText("Nombre cliente");
nombreTF.addMouseListener(new java.awt.event.MouseAdapter() {
public void mouseClicked(java.awt.event.MouseEvent evt) {
nombreTFMouseClicked(evt);
}
});
nombreTF.addKeyListener(new java.awt.event.KeyAdapter() {
public void keyTyped(java.awt.event.KeyEvent evt) {
nombreTFKeyTyped(evt);
}
});
apellidoTF.setText("XXXXX");
apellidoTF.setToolTipText("Apellidos del cliente");
apellidoTF.addMouseListener(new java.awt.event.MouseAdapter() {
public void mouseClicked(java.awt.event.MouseEvent evt) {
apellidoTFMouseClicked(evt);
}
});
apellidoTF.addKeyListener(new java.awt.event.KeyAdapter() {
public void keyTyped(java.awt.event.KeyEvent evt) {
apellidoTFKeyTyped(evt);
}
});
direccionTF.setText("XXXXX");
direccionTF.setToolTipText("Dirrección Cliente");
direccionTF.addMouseListener(new java.awt.event.MouseAdapter() {
public void mouseClicked(java.awt.event.MouseEvent evt) {
direccionTFMouseClicked(evt);
}
});
telefonoTF.setText("000000");
telefonoTF.setToolTipText("Telefono Cliente");
telefonoTF.addMouseListener(new java.awt.event.MouseAdapter() {
public void mouseClicked(java.awt.event.MouseEvent evt) {
telefonoTFMouseClicked(evt);
}
});
telefonoTF.addKeyListener(new java.awt.event.KeyAdapter() {
public void keyTyped(java.awt.event.KeyEvent evt) {
telefonoTFKeyTyped(evt);
}
});
puntosTF.setText("00");
puntosTF.addMouseListener(new java.awt.event.MouseAdapter() {
public void mouseClicked(java.awt.event.MouseEvent evt) {
puntosTFMouseClicked(evt);
}
});
puntosTF.addKeyListener(new java.awt.event.KeyAdapter() {
public void keyTyped(java.awt.event.KeyEvent evt) {
puntosTFKeyTyped(evt);
}
});
correoTF.setText("XXXXX@XXXXX");
correoTF.setToolTipText("Correo Cliente");
correoTF.addMouseListener(new java.awt.event.MouseAdapter() {
public void mouseClicked(java.awt.event.MouseEvent evt) {
correoTFMouseClicked(evt);
}
});
celularTF.setText("00000");
celularTF.setToolTipText("Celular Cliente");
celularTF.addMouseListener(new java.awt.event.MouseAdapter() {
public void mouseClicked(java.awt.event.MouseEvent evt) {
celularTFMouseClicked(evt);
}
});
celularTF.addKeyListener(new java.awt.event.KeyAdapter() {
public void keyTyped(java.awt.event.KeyEvent evt) {
celularTFKeyTyped(evt);
}
});
placaTF.setText("XXX-000");
placaTF.setToolTipText("Placa");
placaTF.addMouseListener(new java.awt.event.MouseAdapter() {
public void mouseClicked(java.awt.event.MouseEvent evt) {
placaTFMouseClicked(evt);
}
});
tipovehCB.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Moto", "Vehículo", "Camioneta", "Buseta", " " }));
tipovehCB.setToolTipText("Tipo de vehiculo");
aceptarB.setBackground(new java.awt.Color(153, 153, 153));
aceptarB.setText("Aceptar");
aceptarB.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
aceptarBActionPerformed(evt);
}
});
jLabel11.setText("Tipo de vehículo");
tipovehCB1.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Moto", "Vehículo", "Camioneta", "Buseta", " " }));
tipovehCB1.setSelectedIndex(4);
jLabel12.setText("Placa");
jLabel13.setText("Tipo de vehículo");
tipovehCB2.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Moto", "Vehículo", "Camioneta", "Buseta", " " }));
tipovehCB2.setSelectedIndex(4);
jLabel14.setText("Placa");
codigoL.setText("Código*");
codigoTF.setText("00000");
codigoTF.setToolTipText("Codigo de la Nueva tarjeta del Cliente");
codigoTF.addMouseListener(new java.awt.event.MouseAdapter() {
public void mouseClicked(java.awt.event.MouseEvent evt) {
codigoTFMouseClicked(evt);
}
});
codigoTF.addKeyListener(new java.awt.event.KeyAdapter() {
public void keyTyped(java.awt.event.KeyEvent evt) {
codigoTFKeyTyped(evt);
}
});
jLabel1.setText("Los campos con * son obligatorios.");
jLabel2.setText("Estado Operacion:");
operacion.setText("No se ha hecho ninguna opreracion");
javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
this.setLayout(layout);
layout.setHorizontalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addContainerGap()
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(identificacionL)
.addComponent(nombreL)
.addComponent(apellidoL)
.addComponent(direccionL)
.addComponent(telefonoL)
.addComponent(tipoL))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(direccionTF, javax.swing.GroupLayout.DEFAULT_SIZE, 143, Short.MAX_VALUE)
.addComponent(telefonoTF, javax.swing.GroupLayout.DEFAULT_SIZE, 143, Short.MAX_VALUE)
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
.addGap(6, 6, 6)
.addComponent(tipovehCB, 0, 137, Short.MAX_VALUE)))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
.addComponent(jLabel5)
.addComponent(celularL)
.addComponent(placaL))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(placaTF, javax.swing.GroupLayout.DEFAULT_SIZE, 132, Short.MAX_VALUE)
.addComponent(celularTF, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 132, Short.MAX_VALUE)
.addComponent(correoTF, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 132, Short.MAX_VALUE)))
.addComponent(nombreTF, javax.swing.GroupLayout.DEFAULT_SIZE, 322, Short.MAX_VALUE)
.addComponent(apellidoTF, javax.swing.GroupLayout.DEFAULT_SIZE, 322, Short.MAX_VALUE)
.addGroup(layout.createSequentialGroup()
.addComponent(identificacionTF, javax.swing.GroupLayout.DEFAULT_SIZE, 140, Short.MAX_VALUE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(codigoL)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
.addComponent(codigoTF, javax.swing.GroupLayout.DEFAULT_SIZE, 129, Short.MAX_VALUE))))
.addGroup(layout.createSequentialGroup()
.addComponent(jLabel11)
.addGap(10, 10, 10)
.addComponent(tipovehCB1, 0, 140, Short.MAX_VALUE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
.addComponent(jLabel12)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(placaTF1, javax.swing.GroupLayout.DEFAULT_SIZE, 137, Short.MAX_VALUE))
.addGroup(layout.createSequentialGroup()
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jLabel10)
.addComponent(jLabel13))
.addGap(10, 10, 10)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addComponent(puntosTF, javax.swing.GroupLayout.PREFERRED_SIZE, 76, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(38, 38, 38)
.addComponent(aceptarB))
.addGroup(layout.createSequentialGroup()
.addComponent(tipovehCB2, 0, 140, Short.MAX_VALUE)
.addGap(10, 10, 10)
.addComponent(jLabel14)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(placaTF2, javax.swing.GroupLayout.DEFAULT_SIZE, 137, Short.MAX_VALUE))))
.addComponent(jLabel1)
.addGroup(layout.createSequentialGroup()
.addComponent(jLabel2)
.addGap(18, 18, 18)
.addComponent(operacion, javax.swing.GroupLayout.DEFAULT_SIZE, 296, Short.MAX_VALUE)))
.addContainerGap())
);
layout.setVerticalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addContainerGap()
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(identificacionL)
.addComponent(identificacionTF, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(codigoL)
.addComponent(codigoTF, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(nombreL)
.addComponent(nombreTF, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(apellidoL)
.addComponent(apellidoTF, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(direccionL)
.addComponent(direccionTF, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(correoTF, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jLabel5))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(telefonoL)
.addComponent(telefonoTF, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(celularTF, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(celularL))
.addGap(18, 18, 18)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(tipoL)
.addComponent(placaTF, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(tipovehCB, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(placaL))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(placaTF1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(tipovehCB1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jLabel12)
.addComponent(jLabel11))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(placaTF2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jLabel14))
.addComponent(tipovehCB2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
.addComponent(jLabel13))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jLabel10)
.addComponent(puntosTF, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(aceptarB))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jLabel1)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(operacion, javax.swing.GroupLayout.PREFERRED_SIZE, 14, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jLabel2))
.addContainerGap(21, Short.MAX_VALUE))
);
}// </editor-fold>//GEN-END:initComponents
private void aceptarBActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_aceptarBActionPerformed
UsuarioDAO usdao=Login.usuariodao;
Usuario usuario = new Usuario();
Usuario pr =new Usuario();
CrearCuenta nuevo=new CrearCuenta();
nuevo.inicio(usuario,codigoTF.getText(),identificacionTF.getText(), nombreTF.getText(),apellidoTF.getText(),
celularTF.getText(), telefonoTF.getText(),direccionTF.getText(),correoTF.getText(),placaTF.getText(),
placaTF1.getText(), placaTF2.getText(),tipovehCB.getSelectedObjects().toString(),
tipovehCB1.getSelectedObjects().toString(),tipovehCB2.getSelectedObjects().toString(),puntosTF.getText());
List<Usuario> usuarios = new ArrayList<Usuario>();
int a;
String msn1=nuevo.comprobacion1(usuario);
if(msn1.equals("Continue")){
CrearCuenta verificar=new CrearCuenta();
pr=verificar.Usuarioexiste(usuario.getIdentificacion());
String msn2=nuevo.comprobacion2(usuario,pr);
if(msn2.equals("Operación Exitosa.")){
// sistema.setUsuario(usuarios);
usdao.crear(usuario);
operacion.setForeground(Color.green);
operacion.setText(msn2);
identificacionTF.setText("00000");
nombreTF.setText("XXXXX");
apellidoTF.setText("XXXXX");
direccionTF.setText("XXXXX");
telefonoTF.setText("000000");
puntosTF.setText("00");
correoTF.setText("XXXXX@XXXXX");
celularTF.setText("00000");
placaTF.setText("XXX-000");
codigoTF.setText("000000");
}else{
JOptionPane.showMessageDialog(null, msn2, "Error", JOptionPane.ERROR_MESSAGE);
operacion.setForeground(Color.red);
operacion.setText("Op. Fallida.");
}
} else {
JOptionPane.showMessageDialog(null,msn1,
"Formulario Incompleto", JOptionPane.ERROR_MESSAGE);
operacion.setForeground(Color.red);
operacion.setText("Op. Fallida.");
}
}//GEN-LAST:event_aceptarBActionPerformed
private void identificacionTFKeyTyped(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_identificacionTFKeyTyped
// TODO add your handling code here:
char noper=evt.getKeyChar();
if(!Character.isDigit(noper)){
evt.consume();
}
}//GEN-LAST:event_identificacionTFKeyTyped
private void codigoTFKeyTyped(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_codigoTFKeyTyped
// TODO add your handling code here:
char noper=evt.getKeyChar();
if(!Character.isDigit(noper)){
evt.consume();
}
}//GEN-LAST:event_codigoTFKeyTyped
private void telefonoTFKeyTyped(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_telefonoTFKeyTyped
char noper=evt.getKeyChar();
if(!Character.isDigit(noper)){
evt.consume();
}
}//GEN-LAST:event_telefonoTFKeyTyped
private void celularTFKeyTyped(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_celularTFKeyTyped
char noper=evt.getKeyChar();
if(!Character.isDigit(noper)){
evt.consume();
}
}//GEN-LAST:event_celularTFKeyTyped
private void puntosTFKeyTyped(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_puntosTFKeyTyped
char noper=evt.getKeyChar();
if(!Character.isDigit(noper)&&noper!='.'){
evt.consume();
}
}//GEN-LAST:event_puntosTFKeyTyped
private void nombreTFKeyTyped(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_nombreTFKeyTyped
// TODO add your handling code here:
char noper=evt.getKeyChar();
if(Character.isDigit(noper)&&noper!='.'){
evt.consume();
}
}//GEN-LAST:event_nombreTFKeyTyped
private void apellidoTFKeyTyped(java.awt.event.KeyEvent evt) {//GEN-FIRST:event_apellidoTFKeyTyped
// TODO add your handling code here:
char noper=evt.getKeyChar();
if(Character.isDigit(noper)&&noper!='.'){
evt.consume();
}
}//GEN-LAST:event_apellidoTFKeyTyped
private void codigoTFMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_codigoTFMouseClicked
// TODO add your handling code here:
codigoTF.setText("");
}//GEN-LAST:event_codigoTFMouseClicked
private void identificacionTFMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_identificacionTFMouseClicked
// TODO add your handling code here:
identificacionTF.setText("");
}//GEN-LAST:event_identificacionTFMouseClicked
private void telefonoTFMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_telefonoTFMouseClicked
// TODO add your handling code here:
telefonoTF.setText("");
}//GEN-LAST:event_telefonoTFMouseClicked
private void puntosTFMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_puntosTFMouseClicked
// TODO add your handling code here:
puntosTF.setText("");
}//GEN-LAST:event_puntosTFMouseClicked
private void correoTFMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_correoTFMouseClicked
// TODO add your handling code here:
correoTF.setText("");
}//GEN-LAST:event_correoTFMouseClicked
private void celularTFMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_celularTFMouseClicked
// TODO add your handling code here:
celularTF.setText("");
}//GEN-LAST:event_celularTFMouseClicked
private void nombreTFMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_nombreTFMouseClicked
// TODO add your handling code here:
nombreTF.setText("");
}//GEN-LAST:event_nombreTFMouseClicked
private void apellidoTFMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_apellidoTFMouseClicked
// TODO add your handling code here:
apellidoTF.setText("");
}//GEN-LAST:event_apellidoTFMouseClicked
private void direccionTFMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_direccionTFMouseClicked
// TODO add your handling code here:
direccionTF.setText("");
}//GEN-LAST:event_direccionTFMouseClicked
private void placaTFMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_placaTFMouseClicked
// TODO add your handling code here:
placaTF.setText("");
}//GEN-LAST:event_placaTFMouseClicked
// Variables declaration - do not modify//GEN-BEGIN:variables
private javax.swing.JButton aceptarB;
private javax.swing.JLabel apellidoL;
private javax.swing.JTextField apellidoTF;
private javax.swing.JLabel celularL;
private javax.swing.JTextField celularTF;
private javax.swing.JLabel codigoL;
private javax.swing.JTextField codigoTF;
private javax.swing.JTextField correoTF;
private javax.swing.JLabel direccionL;
private javax.swing.JTextField direccionTF;
private javax.swing.JLabel identificacionL;
private javax.swing.JTextField identificacionTF;
private javax.swing.JLabel jLabel1;
private javax.swing.JLabel jLabel10;
private javax.swing.JLabel jLabel11;
private javax.swing.JLabel jLabel12;
private javax.swing.JLabel jLabel13;
private javax.swing.JLabel jLabel14;
private javax.swing.JLabel jLabel2;
private javax.swing.JLabel jLabel5;
private javax.swing.JLabel nombreL;
private javax.swing.JTextField nombreTF;
private javax.swing.JLabel operacion;
private javax.swing.JLabel placaL;
private javax.swing.JTextField placaTF;
private javax.swing.JTextField placaTF1;
private javax.swing.JTextField placaTF2;
private javax.swing.JTextField puntosTF;
private javax.swing.JLabel telefonoL;
private javax.swing.JTextField telefonoTF;
private javax.swing.JLabel tipoL;
private javax.swing.JComboBox tipovehCB;
private javax.swing.JComboBox tipovehCB1;
private javax.swing.JComboBox tipovehCB2;
// End of variables declaration//GEN-END:variables
}