This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Combobox Renderer

 
VIJAY Yadlapati
Ranch Hand
Posts: 175
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I am getting a problem using Renderer for Combobox - even though I explicitly set the selectedIndex to -1 or selectedItem to null, it is still displaying some item in the list.
Please help me.
Thanks in advance.
VIJAY Yadlapati
 
Nathan Pruett
Bartender
Posts: 4121
IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Post the code for your renderer... I'm betting this problem is caused because the renderer doesn't explicitly set the value each time, so if there's some problem it just uses the last value it contained. But I'd have to see the code to be sure.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic