• Post Reply Bookmark Topic Watch Topic
  • New Topic

programatic select in jList

 
miguel lisboa
Ranch Hand
Posts: 1281
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
my jList is dinamically populated with Tecnica objects, at startup

later, i want to dinamically select zero, one or two elements of that jList
what i'm doing (with no result) is:

the debug answers are all right, but no selected item in jList
how can i solve this?

TiA
[ March 15, 2006: Message edited by: miguel lisboa ]
 
Ron McKenzie
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Looks like

should be
 
miguel lisboa
Ranch Hand
Posts: 1281
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks for the idea, but doesnt work either i had also tried tecnica.toSring() with no results
 
miguel lisboa
Ranch Hand
Posts: 1281
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i got it!
i went overriding equals (and hashCode) in Tecnica and all is fine now
[ March 16, 2006: Message edited by: miguel lisboa ]
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!