Article View: borland.public.jbuilder.java.swing
Article #554Re: JComboBox with ID, Image and Text
From: Chris
Date: Wed, 29 Jun 2005 11:41
Date: Wed, 29 Jun 2005 11:41
19 lines
1531 bytes
1531 bytes
solved it. The solution was to create a class with the desired values and then use a renderer for the combobox. "Chris" <donotspam@web.li> schrieb im Newsbeitrag news:42b822ee$0$14559$79720d31@newsreader.inode.at... > Hello > > Does anybody have an example of how to fill a combo box with an object > that contains an invisible id-value and a JLabel object which is an icon > with text. > > I know that I have to use a DefaultListCellRenderer and I can create a > combobox with icons and text but I don't get it with the ID value. Can > somebody help me out with an example? > > Thank you > Chris >
Technical Details
Message-ID:
<42c287fa$0$14541$79720d31@newsreader.inode.at>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!newsfeed.inode.at!newsreader.inode.at!not-for-mailReferences:
<42b822ee$0$14559$79720d31@newsreader.inode.at>Show Full Headers
Complete Article Headers
X-Google-Thread: 111d45,7b4f65b22643779c X-Google-Attributes: gid111d45,public X-Google-Language: ENGLISH,ASCII-7-bit Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!newsfeed.inode.at!newsreader.inode.at!not-for-mail From: "Chris" <donotspam@web.li> Newsgroups: borland.public.jbuilder.java.swing References: <42b822ee$0$14559$79720d31@newsreader.inode.at> Subject: Re: JComboBox with ID, Image and Text Date: Wed, 29 Jun 2005 13:41:02 +0200 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2527 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2527 X-RFC2646: Format=Flowed; Response Lines: 21 Message-ID: <42c287fa$0$14541$79720d31@newsreader.inode.at> NNTP-Posting-Date: 29 Jun 2005 11:37:30 GMT NNTP-Posting-Host: 83.65.159.242 X-Trace: 1120045050 newsreader.inode.at 14541 83.65.159.242:16880 X-Complaints-To: abuse@inode.at