LexarG56

Generation

generate functionThu, 20 Jul 2023

JComboBox con 5 model en un ActionPerformed para un boton registrar

private void jButtonRegistrarActionPerformed(java.awt.event.ActionEvent evt) { // TODO add your handling code here: int dni = Integer.parseInt(this.jTextFieldDni.getText()); String nombre=this.jTextFieldNombre.getText(); String apellido = this.jTextFieldApellido.getText(); String fechadenacimiento = this.jTextFieldFechaDeNacimiento.getText(); String domicilio = this.jTextFieldDomicilio.getText(); String telefono = this.jTextFieldTelefono.getText(); String email = this.jTextFieldEmail.getText(); String sexo = this.jComboBox1.getSelectedItem().toString(); String estadocivil = this.jComboBox2.getSelectedItem().toString(); String tipodecarga = this.jComboBox3.getSelectedItem

Questions about programming?Chat with your personal AI assistant