Article View: borland.public.jbuilder.java.swing
Article #832Re: Automatic combobox selection
From: FAXE
Date: Mon, 02 Aug 2004 19:47
Date: Mon, 02 Aug 2004 19:47
16 lines
1783 bytes
1783 bytes
I am looking for the same functionality. My attempt was to react on keyboard events in the editable field and then set the appropriate selection "manually"... but.. I do not know how to get to know the key input of the field.... JComboBox does not react as expected on key events.... but maybe you do.... gert Alex. Nanchen wrote: > Is it possible when you type something in an editable combobox that the combobox automatically find out in its list if there is a match. For example if you type "a", the combobox will positioned itself on the first item begginning whith "a". Then if you type "b", the combobox will position itself on the first item beggining with "ab" and so on. > > Thank you. > > Alex. Nanchen >
Technical Details
Message-ID:
<cem5oo$mkj$1@newsreader1.utanet.at>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!newsfeed.utanet.at!newsspool.utanet.at!not-for-mailReferences:
<410a7d9a$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 111d45,afbf58d3956e1857 X-Google-Attributes: gid111d45,public X-Google-Language: ENGLISH,ASCII-7-bit Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!newsfeed.utanet.at!newsspool.utanet.at!not-for-mail From: FAXE <faxe@yahoo.com> Newsgroups: borland.public.jbuilder.java.swing Subject: Re: Automatic combobox selection Date: Mon, 02 Aug 2004 21:47:29 +0200 Organization: UTA Telekom AG (Customer) Lines: 17 Message-ID: <cem5oo$mkj$1@newsreader1.utanet.at> References: <410a7d9a$1@newsgroups.borland.com> NNTP-Posting-Host: dsl-28-101.utaonline.at Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Trace: newsreader1.utanet.at 1091476056 23187 81.189.28.101 (2 Aug 2004 19:47:36 GMT) X-Complaints-To: abuse@uta.at NNTP-Posting-Date: 2 Aug 2004 19:47:36 GMT User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.4) Gecko/20030624 Netscape/7.1 (ax) X-Accept-Language: en-us, en In-Reply-To: <410a7d9a$1@newsgroups.borland.com>