Only 44 hours left in the trailboss' kickstarter!

New rewards and stretch goals. CLICK HERE!



  • Post Reply Bookmark Topic Watch Topic
  • New Topic

More list cell rendering  RSS feed

 
andrew mcmillan
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I Have a combobox and a set of custom objects with a getName() method.
I Create a couple of instances of my custom objects and add them to the combobox.
Then i use a customised renderer to display the names of the objects in the combobox......still with me?
ok BUT if the user hasnt select anything in the Combobox i want it to display a default message such as "Please Select an Item"
any suggestion, help or solution would be great
 
Paul Stevens
Ranch Hand
Posts: 2823
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think if you call the setText() with that but don't add it to the box it will do what you want. Haven't tried it though.
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!