wood burning stoves 2.0*
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
Author

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: 10170
    
    8

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!]
 
Don't get me started about those stupid light bulbs.
 
subject: Jlabel inside combobox
 
Similar Threads
Spring AOP Exception handling
Toast context inside onFocusChangeListener
Interfaces (Output 's Confusion)
Doubt in Custom tag developement
Where to keep shared jar files of an ear file inside JBOSS