News »Browse Articles »
Swing Action management with Reflection
0
Swing Action management with Reflection
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.
Search News
News Categories
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
-
How to stand out from other Java/JEE Professionals?
Published about 14-01-2009 | Rated +3 -
10 reasons IT certification will be important in 2009
Published about 05-01-2009 | Rated +2 -
The 9 hottest skills for `09
Published about 02-01-2009 | Rated +1 -
New Features in Servlets 3.0
Published about 05-01-2009 | Rated +4
Most Recent User Submitted News
- Overview of JMS and Web Services
Published about 07-08-2009 | Rated 0 - SpringSource tc Server: Tomcat for the Enterprise
Published about 03-05-2009 | Rated +1 - Java and the Mac OS X
Published about 02-06-2009 | Rated +1 - Does the order of public and static declaration matter in main() method?
Submitted by Balamurali | Rated 0







