J
Jason Cavett
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
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