How can I select 3 data from a list in java?
With this code I can only select a value from the list, I need to select 3 of them and save them in each of the String
variables that appear there.
String apunt,apunt2,apunt3;
if(ListaUno.isSelectionEmpty()){ JOptionPane.showMessageDialog(null, "
Seleccione un valor de la Lista "); }
else{
apunt=ListaUno.getSelectedValue(); Ley obj=new Ley(); obj.setDato(apunt);
obj.setModelo(modelo); JOptionPane.showMessageDialog(null,"es"); [![introducir la descripción de la imagen aquí][1]][1]
}