Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.glorb.com!news-out.readnews.com!transit3.readnews.com!news-out.news.tds.net!newsreading01.news.tds.net!53ab2750!not-for-mail From: "markspace" Subject: Re: JComboBox with IDentifiers Message-ID: <50269FCE.56635.calajapr@time.synchro.net> X-Comment-To: All Newsgroups: comp.lang.java.programmer X-FTN-AREA: COMP.LANG.JAVA.PROGRAMMER X-FTN-MSGID: 1:261/38 475aafcd Content-Type: text/plain; charset=IBM437 Content-Transfer-Encoding: 8bit X-Gateway: time.synchro.net [Synchronet 3.16a-Win32 NewsLink 1.98] Lines: 32 Date: Sat, 11 Aug 2012 18:17:50 GMT NNTP-Posting-Host: 69.21.70.65 X-Complaints-To: news@tds.net X-Trace: newsreading01.news.tds.net 1344709070 69.21.70.65 (Sat, 11 Aug 2012 13:17:50 CDT) NNTP-Posting-Date: Sat, 11 Aug 2012 13:17:50 CDT Organization: tds.net Xref: csiph.com comp.lang.java.programmer:17688 From: markspace <-@.> 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? --- 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