Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!eternal-september.org!feeder.eternal-september.org!mx04.eternal-september.org!.POSTED!not-for-mail From: markspace <-@.> Newsgroups: comp.lang.java.programmer Subject: Re: JComboBox with IDentifiers Date: Fri, 10 Aug 2012 15:14:28 -0700 Organization: A noiseless patient Spider Lines: 26 Message-ID: References: <08a4e9e5-be46-4a15-94c4-e6bfab71d781@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Fri, 10 Aug 2012 22:14:35 +0000 (UTC) Injection-Info: mx04.eternal-september.org; posting-host="104ea93b2a90d763b2b4538d1ef3ad00"; logging-data="28522"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18LPa4aX/Fq947V/CAWlNO+vxW2+JvnVc8=" User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:14.0) Gecko/20120713 Thunderbird/14.0 In-Reply-To: <08a4e9e5-be46-4a15-94c4-e6bfab71d781@googlegroups.com> Cancel-Lock: sha1:EI9sfpdMnGRTSuF3N4cVyYGWkuY= Xref: csiph.com comp.lang.java.programmer:17657 On 8/10/2012 2:41 PM, Roberto Sagoleo wrote: > Hi Guys, here I am again with another amazing trouble! 08-) > > I need to create a JComboBox containing a list of Items, each of > which has its own IDentifier! > > So: when I select an Item of the JComboBox, I need to get its > IDentifier (ie: its ID in a DataBase Table). > > I wrote the following four classes example, and I hope this could > help someone else with my same needs! Honestly I think your code is overly baroque, and doesn't follow Java coding conventions. So it's not really useful. Take a look at the tutorials here, to see some examples that I think are more useful: Let's extend this question somewhat: There's a "database inspector" built into NetBeans, but I find it clumsy. Do people use GUI-based database inspector/administration tools? Which ones do you like? If you were spec-ing a Java version, what features would you like to see?