Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.gui > #859
| From | "John T. Dow" <john.t..dow@THRWHITE.remove-dii-this> |
|---|---|
| Subject | Re: JDialog not consuming |
| Message-ID | <Xns98CA798E05B8johnjohntdowcom@207.217.125.201> (permalink) |
| Newsgroups | comp.lang.java.gui |
| References | <1170345940.441366.138160@l53g2000cwa.googlegroups.com> |
| Date | 2011-04-27 15:30 +0000 |
| Organization | TDS.net |
To: comp.lang.java.gui "chipu" <thrawnkb@gmail.com> wrote in news:1170345940.441366.138160 @l53g2000cwa.googlegroups.com: > have you tried the low level aproach instead? > > addAWTEventListener(...); > > and in the Listener: > > awtEvent.consume(); > > Usually is not a good idea to use this low level method, but if > nothing else works... > > PD: dont forget removing the listener when you JDialog is closed > > Isn't the problem with a listener that you need one for each component that might have focus. Anyway, I think I figured out what the problem is. I just haven't had time to investigate it yet. My JDialog is built on the fly. It's a special purpose, throwaway copy of a frame. That's why there's a difference between it and the simple example I created, which of course works fine. When I get it working, I'll post something. Thanks John --- * Synchronet * The Whitehouse BBS --- whitehouse.hulds.com --- check it out free usenet! --- Synchronet 3.15a-Win32 NewsLink 1.92 Time Warp of the Future BBS - telnet://time.synchro.net:24
Back to comp.lang.java.gui | Previous | Next — Previous in thread | Next in thread | Find similar
JDialog not consuming ESC "John T. Dow" <john.t..dow@THRWHITE.remove-dii-this> - 2011-04-27 15:29 +0000
Re: JDialog not consuming "Edwin Dankert" <edwin.dankert@THRWHITE.remove-dii-this> - 2011-04-27 15:29 +0000
Re: JDialog not consuming "Andrew Thompson" <andrew.thompson@THRWHITE.remove-dii-this> - 2011-04-27 15:29 +0000
Re: JDialog not consuming "John T. Dow" <john.t..dow@THRWHITE.remove-dii-this> - 2011-04-27 15:29 +0000
Re: JDialog not consuming "Andrew Thompson" <andrew.thompson@THRWHITE.remove-dii-this> - 2011-04-27 15:29 +0000
Re: JDialog not consuming "Brandon McCombs" <brandon.mccombs@THRWHITE.remove-dii-this> - 2011-04-27 15:30 +0000
Re: JDialog not consuming "chipu" <chipu@THRWHITE.remove-dii-this> - 2011-04-27 15:29 +0000
Re: JDialog not consuming "John T. Dow" <john.t..dow@THRWHITE.remove-dii-this> - 2011-04-27 15:30 +0000
Re: JDialog not consuming "chipu" <chipu@THRWHITE.remove-dii-this> - 2011-04-27 15:30 +0000
Re: JDialog not consuming "John T. Dow" <john.t..dow@THRWHITE.remove-dii-this> - 2011-04-27 15:30 +0000
csiph-web