🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.swing
Article #551

JComboBox with ID, Image and Text

#551
From: Chris
Date: Tue, 21 Jun 2005 14:27
12 lines
1319 bytes
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: <42b822ee$0$14559$79720d31@newsreader.inode.at>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news2.google.com!proxad.net!gatel-ffm!gatel-ffm!194.25.134.126.MISMATCH!newsfeed01.sul.t-online.de!t-online.de!newsfeed.inode.at!newsreader.inode.at!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: 111d45,7b4f65b22643779c,start
X-Google-Attributes: gid111d45,public
X-Google-Language: ENGLISH,ASCII-7-bit
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news2.google.com!proxad.net!gatel-ffm!gatel-ffm!194.25.134.126.MISMATCH!newsfeed01.sul.t-online.de!t-online.de!newsfeed.inode.at!newsreader.inode.at!not-for-mail
From: "Chris" <donotspam@web.li>
Newsgroups: borland.public.jbuilder.java.swing
Subject: JComboBox with ID, Image and Text
Date: Tue, 21 Jun 2005 16:27:05 +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; Original
Lines: 14
Message-ID: <42b822ee$0$14559$79720d31@newsreader.inode.at>
NNTP-Posting-Date: 21 Jun 2005 14:23:42 GMT
NNTP-Posting-Host: 83.65.159.242
X-Trace: 1119363822 newsreader.inode.at 14559 83.65.159.242:20702
X-Complaints-To: abuse@inode.at