3 Replies Latest reply on Sep 6, 2006 9:59 PM by gavin.king

    Annotations for Swing

    smokingapipe

      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.