See which of your colleagues or former colleagues are already on Java Link: Check out the Contact Finder
News »Browse Articles » Swing Action management with Reflection
0
Vote Vote

Swing Action management with Reflection

Views 1 Views    Comments 0 Comments    Share Share    Posted by Balamurali 19-11-2010  
One of the strengths you’ll find in both Java`s AWT and Swing GUI toolkits lies in the flexible, abstract way they handle events. But this flexibility comes at the expense of simplicity, with the result that Java developers may find themselves writing large amounts of code to handle comparatively simple tasks, such as creating menu or toolbar commands. One of our Java tips of the week, "Done with mirrors: Use Reflection to catch generic actions," introduces an elegant technique for handling events with minimal code by dynamically generating function names via Java`s Reflection API.
0
Vote  Vote
Enter your comment:
No Comments For This News

Search News

What's the News?

Post a link to something interesting from another site, or submit your own original writing for the Java community to read.

Most Popular News

Most Recent User Submitted News