LexarG56

Generation

generate functionSun, 18 Jun 2023

Crear un menu con el boton de crear una cita de soporte tecnico.

private void btnCrearCitaActionPerformed(java.awt.event.ActionEvent evt) { String c = "", h = ""; try { c = fechaCita.getCalendar().getTime().toString(); h = txtHora.getText().toString(); } catch (Exception e) { JOptionPane.showMessageDialog(null, "Seleccione la fecha"); return; } c = c.substring(0, c.length() - 6); h = h.substring(0, h.length() - 3); String date = c + " " + h; int id_usuario = listaUsuarios.get(cmbUsuario.getSelectedIndex()).getId_usuario(); int id_soporte = listaSoportes.get(cmbSoporte.getSelectedIndex()).getId_soporte(); cita = new Cita

Questions about programming?Chat with your personal AI assistant