LexarG56

Generation

generate functionThu, 20 Jul 2023

JComboBox con 5 model en un ActionPerformed para un boton registrar

public void Registrar(ActionEvent e){ String tipo = jComboBox1.getSelectedItem().toString(); if (tipo.equalsIgnoreCase("tipo1")){ //... }else if (tipo.equalsIgnoreCase("tipo2")){ //... }else if (tipo.equalsIgnoreCase("tipo3")){ //... } }

Questions about programming?Chat with your personal AI assistant