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

From markspace <-@.>
Newsgroups comp.lang.java.help
Subject Re: Need example how to use events with a jcombobox
Date 2012-12-18 13:40 -0800
Organization A noiseless patient Spider
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>

Show all headers | 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