Ver Mensaje Individual
  #2 (permalink)  
Antiguo 29/07/2010, 11:31
jevelio
 
Fecha de Ingreso: julio-2010
Mensajes: 4
Antigüedad: 13 años, 9 meses
Puntos: 0
Respuesta: Problema JComboBox

Me respondo a mi mismo
Warning: Focus and keyboard navigation problems may arise if you add duplicate String objects. A workaround is to add new objects instead of String objects and make sure that the toString() method is defined. For example:

comboBox.addItem(makeObj("Item 1"));
comboBox.addItem(makeObj("Item 1"));
...
private Object makeObj(final String item) {
return new Object() { public String toString() { return item; } };
}

Disculpen las moletias realmente no habia encontrado nada entes de abrir este tema.

Saludos