Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Jlabel inside combobox

 
Mohamad Obagi
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i am trying to add a j label inside combo box using net beans but i am not being able to!

the jlabels contain icons

does anyone knows how i can do it?
 
Maneesh Godbole
Saloon Keeper
Posts: 11070
13
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You need to provide a renderer to the combo box which will return the required label.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic