File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
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: 10828

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!