Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.gui > #5200
| From | Adam Beneschan <adam@irvine.com> |
|---|---|
| Newsgroups | comp.lang.java.gui |
| Subject | Re: Passing KeyEvent upward |
| Date | 2012-07-23 21:15 -0700 |
| Organization | http://groups.google.com |
| Message-ID | <d076aed2-15be-4979-bdcb-fbdd15a76172@googlegroups.com> (permalink) |
| References | <0f05834e-c654-4925-b78a-b8328b23ba0b@googlegroups.com> <jui5n3$vq$1@dont-email.me> |
On Sunday, July 22, 2012 5:26:08 PM UTC-7, markspace wrote:
> On 7/22/2012 4:09 PM, Adam Beneschan wrote:
> > if the user presses a key, the
> > key is handled just as if the menu hadn't come up--that is, the
> > key-press event will be handled by the JTextPane (or is it the
> > associated document?) as if the user had typed that key into the
>
>
> Sounds like an accelerator to me.
No, I don't think so. If I understand the term correctly, an accelerator just gives you a quick way to select a menu item (possibly from a submenu deeper in the menu tree) using the keyboard. That isn't what I want here.
But thanks for the info. I'll look into it. It may be a few days before I can try it, though.
-- Adam
>
> <http://docs.oracle.com/javase/tutorial/uiswing/components/menu.html>
>
> Also take a look at Actions.
>
>
> > document. I've already set up a MenuKeyListener for the popup menu
> > that recognizes the KeyEvent and calls menu.setVisible(false) to get
> > rid of the menu. So far, so good.
>
>
> Ick. Sounds terrible. You seem to be making things worse since you
> don't know about the existing APIs that do menu acceleration. I'd stop,
> make a super small example to get your thoughts straightened out, then
> consider how best to rework your app with your new ideas.
Back to comp.lang.java.gui | Previous | Next — Previous in thread | Next in thread | Find similar
Passing KeyEvent upward Adam Beneschan <adam@irvine.com> - 2012-07-22 16:09 -0700
Re: Passing KeyEvent upward markspace <-@.> - 2012-07-22 17:26 -0700
Re: Passing KeyEvent upward markspace <-@.> - 2012-07-22 17:39 -0700
Re: Passing KeyEvent upward Adam Beneschan <adam@irvine.com> - 2012-07-23 21:15 -0700
Re: Passing KeyEvent upward markspace <-@.> - 2012-07-23 23:08 -0700
Re: Passing KeyEvent upward "John B. Matthews" <nospam@nospam.invalid> - 2012-07-22 21:32 -0400
Re: Passing KeyEvent upward Roedy Green <see_website@mindprod.com.invalid> - 2012-07-23 23:46 -0700
Re: Passing KeyEvent upward Knute Johnson <nospam@rabbitbrush.frazmtn.com> - 2012-07-24 13:15 -0700
Re: Passing KeyEvent upward Adam Beneschan <adam@irvine.com> - 2012-07-24 21:08 -0700
Re: Passing KeyEvent upward markspace <-@.> - 2012-07-24 22:50 -0700
Re: Passing KeyEvent upward Daniele Futtorovic <da.futt.news@laposte-dot-net.invalid> - 2012-07-25 00:32 +0200
csiph-web