Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.gui > #2627
| From | "Jason Cavett" <jason.cavett@THRWHITE.remove-dii-this> |
|---|---|
| Subject | Menu Removes Focus |
| Message-ID | <1192199555.846573.118100@v29g2000prd.googlegroups.com> (permalink) |
| Newsgroups | comp.lang.java.gui |
| Date | 2011-04-27 15:40 +0000 |
| Organization | TDS.net |
To: comp.lang.java.gui,comp.l I'm curious - how do I know what component has focus when I need to pop up a menu to complete a task. For example, in my JTree, I have a popup menu that comes up when I right click on the tree. Well, the JTree is the "real" object that has focus (for a paste/cut/copy/whatever), but now that the menu is shown, Java thinks it is the thing to have the real focus. Hopefully that makes sense. Thanks --- * 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 — Next in thread | Find similar | Unroll thread
Menu Removes Focus "Jason Cavett" <jason.cavett@THRWHITE.remove-dii-this> - 2011-04-27 15:40 +0000 Re: Menu Removes Focus "Steve W. Jackson" <steve.w..jackson@THRWHITE.remove-dii-this> - 2011-04-27 15:40 +0000
csiph-web