[jboss-user] [JBoss Seam] - Annotations for Swing

SmokingAPipe do-not-reply at jboss.com
Sat Sep 2 13:39:41 EDT 2006


This is totally off the topic of Seam, but it's something that Seam users would understand best.

Wouldn't it be cool to have annotations when building Swing apps?  Instead of doing all these anonymous classes to handle events, you could annotate your bean classes with "inject this UI thing here" annotations.

One thing that made me think this is that Trolltech made a version of Qt for Java apps and they are making a big deal of the fact that instead of registering listener objects (ie, anonymous classes) you just call something like register("setName(Ljava/lang/String)") or something.  You register the method, not an object.  But if you're doing that it's better to use an annotation on the method itself I think.

Just my thought of the day.


View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3969060#3969060

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3969060



More information about the jboss-user mailing list