exam progra 1
private void btnNuevoActionPerformed(java.awt.event.ActionEvent evt) {
// TODO add your handling code here:this._ActivaCampo(true);
this.txtNumeroCuenta.requestFocus();
//this.txtNumeroCuenta.requestFocus(); esta linea hace que manda al cursor en txtNumeroCuenta
//this._EstanVacidos();}
private void btnGuardarActionPerformed(java.awt.event.ActionEvent evt) {
// TODO add your handling code here:JOptionPane.showMessageDialog(null, "Sus datos han sido guardado existosamente...");
//JOptionPane.showMessageDialog(null, "Sus datos han sido guardado existosamente...");
//Es para mostrar un mensaje}
private void btnSalirActionPerformed(java.awt.event.ActionEvent evt) {
// TODO add your handling code here:System.exit(0);
// este metodo lo q hace es salir del programa
}
public void _ActivaCampo (boolean pvalor){
if (pvalor)
{this.txtNumeroCuenta.setEnabled(true);
this.txtNombreCliente.setEnabled(true);
this.txtApellidosCliente.setEnabled(true);
this.txtEstado.setEnabled(true);
this.txtTipo.setEnabled(true);this.txtSaldo.setEnabled(true);
this.txtNombreBanco.setEnabled(true);
}
else
{
this.txtNumeroCuenta.setEnabled(false);this.txtNombreCliente.setEnabled(false);
this.txtApellidosCliente.setEnabled(false);
this.txtEstado.setEnabled(false);
this.txtTipo.setEnabled(false);
this.txtSaldo.setEnabled(false);this.txtNombreBanco.setEnabled(false);
}
}
public boolean _EstanVacidos (){
if(this.txtNumeroCuenta.getText().isEmpty() || this.txtNombreCliente.getText().isEmpty() ||...
Regístrate para leer el documento completo.