Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.gui > #1008
| From | "Jason Cavett" <jason.cavett@THRWHITE.remove-dii-this> |
|---|---|
| Subject | Listeners Firing Too Ofte |
| Message-ID | <1172178471.140471.20160@s48g2000cws.googlegroups.com> (permalink) |
| Newsgroups | comp.lang.java.gui |
| Date | 2011-04-27 15:30 +0000 |
| Organization | TDS.net |
To: comp.lang.java.gui I am developing a GUI (in Java, of course) that has a JTree on the left hand side of the window (similar to Windows Explorer or something like that) and on the right hand side the user can open various property windows to edit the items in the JTree. The issue I'm having is this... I have added a key listener to one of the property windows so that, when the user hits the delete key, they can delete parts of the equation they constructed (mathematical equations). The JTree also has a separate key listener that will delete the selected nodes in the tree if I hit the delete key. Both these keylisteners work fine on their own. However, when I open up the property window and highlight part of the equation and hit the delete key, not only does that part of the equation delete, but then the JTree also captures the KeyAction and deletes the currently selected node in the JTree. I have no clue why this is happening. The JTree doesn't have direct focus. I haven't been able to find any real connection between the two components. Any ideas/suggestions/? --- * 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
Listeners Firing Too Ofte "Jason Cavett" <jason.cavett@THRWHITE.remove-dii-this> - 2011-04-27 15:30 +0000 Re: Listeners Firing Too "Andrew Thompson" <andrew.thompson@THRWHITE.remove-dii-this> - 2011-04-27 15:30 +0000 Re: Listeners Firing Too "Jason Cavett" <jason.cavett@THRWHITE.remove-dii-this> - 2011-04-27 15:30 +0000
csiph-web