This week's book giveaways are in the iOS and Features new in Java 8 forums.
We're giving away four copies each of Barcodes with iOS: Bringing together the digital and physical worlds and Core Java for the Impatient and have the authors on-line!
See this thread and this one 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 Barcodes with iOS this week in the iOS forum
or Core Java for the Impatient in the Java 8 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: 10644

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