Swing Focus Problem
I have a GUI with multiple components some of which are text fields and some
aren't. There is also a toolbar at the top of the GUI. I would like to have
toolbar buttons representing the cut/copy/paste actions.
The problem is when you click on the button the text field with the focus
looses it! There is no way for the AbstractAction to tell which TextField
had focus via the ActionEvent object.
The only possible semi-solution I've come up with is to add a focus listener
to every component that sets a global static variable to the last focussed
component. This would probably work OK but I'd prefer a better solution.
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL