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


Groups > comp.lang.java.help > #2368

Re: Need example how to use events with a jcombobox

Path csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!feeder.erje.net!eu.feeder.erje.net!eternal-september.org!feeder.eternal-september.org!mx04.eternal-september.org!.POSTED!not-for-mail
From markspace <-@.>
Newsgroups comp.lang.java.help
Subject Re: Need example how to use events with a jcombobox
Date Tue, 18 Dec 2012 13:40:27 -0800
Organization A noiseless patient Spider
Lines 17
Message-ID <kaqnsd$7te$1@dont-email.me> (permalink)
References <b87137f0-ad0d-4884-a6e5-0b2e534d34c9@googlegroups.com> <kaqlhn$olq$1@dont-email.me> <0cc9e12a-8bbb-4f61-929c-7017d72298a4@googlegroups.com>
Mime-Version 1.0
Content-Type text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding 7bit
Injection-Date Tue, 18 Dec 2012 21:40:29 +0000 (UTC)
Injection-Info mx04.eternal-september.org; posting-host="61282af8d6595e8d991edb5ac03d6e00"; logging-data="8110"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/B5rVJrFGE/XnLPMtewraJiQ+dU4/r/QQ="
User-Agent Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/17.0 Thunderbird/17.0
In-Reply-To <0cc9e12a-8bbb-4f61-929c-7017d72298a4@googlegroups.com>
Cancel-Lock sha1:eCPJC7J1fChBMiR3Coyfz5T3pJo=
Xref csiph.com comp.lang.java.help:2368

Show key headers only | View raw


On 12/18/2012 1:23 PM, kedward777@gmail.com wrote:
 > Is there another
> approach that is well documented and more easily implemented? I can't
> believe this hasn't been done before(?)

Seriously, no.  This is the best, and easiest, way I can think of.

Sometimes programming is just complex, period.  Not much to be done 
about that except suck it up and write the code.

The only gotcha in Eric's outline I might see is firing an event on 
exactly 3 characters.  I think you should fire an event on any character 
change.  The reason is you're probably going to want to search again for 
4 character, 5 characters, etc.  And if the user backspaces to 2 
characters, you'll want to clear the search results.  So firing an event 
for every change sounds best to me.

Back to comp.lang.java.help | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Need example how to use events with a  jcombobox kedward777@gmail.com - 2012-12-18 11:20 -0800
  Re: Need example how to use events with a  jcombobox Eric Sosman <esosman@comcast-dot-net.invalid> - 2012-12-18 15:17 -0500
    Re: Need example how to use events with a  jcombobox Gunter Herrmann <notformail0106@earthlink.net> - 2012-12-18 17:40 -0500
  Re: Need example how to use events with a  jcombobox markspace <-@.> - 2012-12-18 13:00 -0800
    Re: Need example how to use events with a  jcombobox kedward777@gmail.com - 2012-12-18 13:23 -0800
      Re: Need example how to use events with a  jcombobox markspace <-@.> - 2012-12-18 13:40 -0800
        Re: Need example how to use events with a  jcombobox Eric Sosman <esosman@comcast-dot-net.invalid> - 2012-12-18 17:01 -0500

csiph-web