Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #17900

Re: JComboBox with IDentifiers

From "Roedy Green" <roedy.green@1:261/38.remove-z1z-this>
Subject Re: JComboBox with IDentifiers
Message-ID <502BE721.56847.calajapr@time.synchro.net> (permalink)
Newsgroups comp.lang.java.programmer
Date 2012-08-15 18:36 +0000
Organization tds.net

Show all headers | View raw


From: Roedy Green <see_website@mindprod.com.invalid>

On Fri, 10 Aug 2012 14:41:33 -0700 (PDT), Roberto Sagoleo
<roberto.sagoleo@gmail.com> wrote, quoted or indirectly quoted someone
who said :

>I need to create a JComboBox containing a list of Items, each of which has its
own IDentifier!

see http://mindprod.com/jgloss/jcombobox.html for sample code.  I usually make 
each option an enum constant.
--
Roedy Green Canadian Mind Products http://mindprod.com A new scientific truth 
does not triumph by convincing its opponents and making them see the light,
but rather because its opponents eventually die, and a new generation grows up 
that is familiar with it.
~ Max Planck 1858-04-23 1947-10-04

--- BBBS/Li6 v4.10 Dada-1
 * Origin: Prism bbs (1:261/38)
--- Synchronet 3.16a-Win32 NewsLink 1.98
Time Warp of the Future BBS - telnet://time.synchro.net:24

Back to comp.lang.java.programmer | Previous | Next | Find similar | Unroll thread


Thread

Re: JComboBox with IDentifiers "Roedy Green" <roedy.green@1:261/38.remove-z1z-this> - 2012-08-15 18:36 +0000

csiph-web