This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes Jlabel inside combobox Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Jlabel inside combobox" Watch "Jlabel inside combobox" New topic

Jlabel inside combobox

Mohamad Obagi
Ranch Hand

Joined: Oct 25, 2008
Posts: 37
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

Joined: Jul 26, 2007
Posts: 10768

You need to provide a renderer to the combo box which will return the required label.

[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
I agree. Here's the link:
subject: Jlabel inside combobox
It's not a secret anymore!