• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Tim Cooke
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Knute Snortum
  • paul wheaton
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Tim Holloway
  • Carey Brown
  • salvin francis

Issue with ListBox

 
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have an issue with a ListBox, it's a multiple selection list, and the first element is always selected, I have tried to put setSelectedIndex(-1) after the list has been added to the root panel and no luck. the google site says it's an issue but they don't provide another solution than the setSelectedIndex, so does anyone know what I can do to not having this problem?. I have GWT 1.5.3, regards.
 
Bartender
Posts: 11445
18
Android Google Web Toolkit Mac Eclipse IDE Ubuntu Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

I have GWT 1.5.3


Try upgrading to the latest version.
If google says this is a known issue, most probably, it has been resolved in later versions.
 
Serch Hdez
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I tried to run my code using the newest jars out there, and found out I needed to make al of changes on the code, so right now it's not the solution for me. I was able to make the list not autoselect the first element, it's now selecting the very last one.. but I don't know what else I can do:



This will take the problem of having selected the first element but now the last one is the one selected . Anyone please help.
 
Popeye has his spinach. I have this tiny ad:
create, convert, edit or print DOC and DOCX in Java
https://products.aspose.com/words/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!