JComboBox en un ActionPerformed de un boton registrar con 5 model
private void btnRegistrarActionPerformed(java.awt.event.ActionEvent evt) { int selectedIndex = model.getSelectedIndex(); switch (selectedIndex) { case 0: model.addElement("Item6"); model.addElement("Item7"); model.addElement("Item8"); model.addElement("Item9"); model.addElement("Item10"); break; case 1: model.addElement("Item11"); model.addElement("Item12"); model.addElement("Item13"); model.addElement("Item14"); model.addElement("Item15"); break; case 2: model.addElement("Item16"); model.addElement("Item17"); model.addElement("Item18"); model.addElement("Item19"); model.addElement("Item20"); break; case 3: model.addElement("Item21"); model.addElement("Item22