Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.help > #2367
| Newsgroups | comp.lang.java.help |
|---|---|
| Date | 2012-12-18 13:23 -0800 |
| References | <b87137f0-ad0d-4884-a6e5-0b2e534d34c9@googlegroups.com> <kaqlhn$olq$1@dont-email.me> |
| Message-ID | <0cc9e12a-8bbb-4f61-929c-7017d72298a4@googlegroups.com> (permalink) |
| Subject | Re: Need example how to use events with a jcombobox |
| From | kedward777@gmail.com |
On Tuesday, December 18, 2012 4:00:37 PM UTC-5, markspace wrote: > On 12/18/2012 11:20 AM, wrote: > > > > > Can you show me a code example how I would allow the user to "tap > > > into" the jcombobox, and enter 3 characters of a name, and then have > > > that fire an event > > > > Eric's outline looks good to me. (I also haven't implemented such a > > request.) In general the "editable combobox" example in Oracle's > > tutorial will show you how to look up items in your combobox. > > > > <http://docs.oracle.com/javase/tutorial/uiswing/components/combobox.html> > > > > However the requirement for "three or more characters" is probably going > > to require you to use the underlying document as Eric proposes. Swing > > events usually aren't that fine grained, and you have to dig down to a > > lower level component to get that kind of information out (and thus fire > > an event when it happens). Thank you Gentlemen, I really didn't think it would be that difficult. Is there another approach that is well documented and more easily implemented? I can't believe this hasn't been done before(?) Ken
Back to comp.lang.java.help | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll 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