aspose file tools
The moose likes Swing / AWT / SWT and the fly likes Lost the focus from desired component while one use the menu option Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Reply Bookmark "Lost the focus from desired component while one use the menu option" Watch "Lost the focus from desired component while one use the menu option" New topic
Author

Lost the focus from desired component while one use the menu option

Atish Khedkar
Greenhorn

Joined: Aug 25, 2004
Posts: 1
Hi,
<br><p>
I have multiple Textcomponents (JTextField) in single panel and have "Edit" functionality i.e. "cut", "copy", "past" and "select All" through menubar. For the above mentioned functionality, first, I have to identify my focused component. But when I use "Edit" menu option, the focus has been changed to menu item and I have not get expected focused component.
<br><p>
But when i try to use the above edit functionality from the menubar the focus compenent is menu item and NOT desired focused TextCompenent
<br><p>
I haved use below utility to get focus component
Component component = SwingUtilities.findFocusOwner(this);

Please, kiondly help me out, how could i resolve this prob.
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Lost the focus from desired component while one use the menu option
 
Similar Threads
JSP+Checkbox - Urgent !!
sbmission of form through javascript
Options in drop-down menu
ComboBox in jsp
SelectAll in edit menu