Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

JList Showing null items  RSS feed

 
Fidel Edwards
Ranch Hand
Posts: 234
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi members,

I am facing a weird problem. I do no know why is it happeing? Whenever I add an item in JList it shows null. I checked it by putting breakpoints ,SOP and all. But no success. Please help me !

Thanks in advance !
 
Rob Spoor
Sheriff
Posts: 21092
85
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How about a SSCCE that shows us the items and how you add them?
 
Fidel Edwards
Ranch Hand
Posts: 234
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Rob Prime wrote:How about a SSCCE that shows us the items and how you add them?


Sorry Rob for posting the abstract kind of problem. Although I solved the issue myself.In fact my cellRenderer was setting up the null string.

Thanks for reply !
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!