Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.gui > #5150
| Path | csiph.com!usenet.pasdenom.info!gegeweb.org!eternal-september.org!feeder.eternal-september.org!mx04.eternal-september.org!.POSTED!not-for-mail |
|---|---|
| From | Jeff Higgins <jeff@invalid.invalid> |
| Newsgroups | comp.lang.java.gui |
| Subject | Re: Where is the actual menu key processing in Swing or the LaF? |
| Date | Sun, 27 May 2012 19:11:16 -0400 |
| Organization | A noiseless patient Spider |
| Lines | 33 |
| Message-ID | <jpucc7$ch6$1@dont-email.me> (permalink) |
| References | <menu-20120525135656@ram.dialup.fu-berlin.de> <jpo4aq$ngr$1@dont-email.me> <menu-20120525181856@ram.dialup.fu-berlin.de> <jpu8sm$qpj$1@dont-email.me> <overwriting-20120528003801@ram.dialup.fu-berlin.de> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=ISO-8859-1; format=flowed |
| Content-Transfer-Encoding | 8bit |
| Injection-Date | Sun, 27 May 2012 23:12:07 +0000 (UTC) |
| Injection-Info | mx04.eternal-september.org; posting-host="lN5NBsxb/Hl+dKZczfqfVQ"; logging-data="12838"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/iriSbfP5HgHGaCXoeCny8B6tE8dnp+HA=" |
| User-Agent | Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.16) Gecko/20120507 Icedove/3.0.11 |
| In-Reply-To | <overwriting-20120528003801@ram.dialup.fu-berlin.de> |
| Cancel-Lock | sha1:T4JAS0Gt3OftAkFHi41mSvkWjqQ= |
| Xref | csiph.com comp.lang.java.gui:5150 |
Show key headers only | View raw
On 05/27/2012 06:52 PM, Stefan Ram wrote: > Jeff Higgins<jeff@invalid.invalid> writes: >> After a good bit of reading on the subject since your post, I find your >> statement: "»Overwriting« something in a LaF also is not obvious" >> remarkably mild. > > I did accomplish it in the end by overwriting > > processKeyEvent > ( final java.awt.event.KeyEvent keyEvent, > final javax.swing.MenuElement menuElement[], > final javax.swing.MenuSelectionManager menuSelectionManager ) > > in JMenu, using > > javax.swing.MenuSelectionManager.defaultManager().setSelectedPath( javax.swing.MenuElement[] ) > > to adjust the menu path. > So now you use ram.stephan.JMenu in place of javax.swing.JMenu? import javax.swing.JFrame; //import javax.swing.JMenu; import ram.stephan.JMenu import javax.swing.JMenuBar; import javax.swing.JMenuItem; Maybe I'm tipsy. I thought the whole idea was to replace the "feel" rather than the component. Sigh, back to the watermelon.
Back to comp.lang.java.gui | Previous | Next — Previous in thread | Next in thread | Find similar
Re: Where is the actual menu key processing in Swing or the LaF? Jeff Higgins <jeff@invalid.invalid> - 2012-05-25 10:18 -0400
Re: Where is the actual menu key processing in Swing or the LaF? Jeff Higgins <jeff@invalid.invalid> - 2012-05-27 18:12 -0400
Re: Where is the actual menu key processing in Swing or the LaF? Jeff Higgins <jeff@invalid.invalid> - 2012-05-27 19:11 -0400
Re: Where is the actual menu key processing in Swing or the LaF? Jeff Higgins <jeff@invalid.invalid> - 2012-05-27 19:33 -0400
Re: Where is the actual menu key processing in Swing or the LaF? Jeff Higgins <jeff@invalid.invalid> - 2012-05-27 21:20 -0400
csiph-web