Win a copy of Secure Financial Transactions with Ansible, Terraform, and OpenSCAP this week in the Cloud/Virtualization forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Rob Spoor
  • Henry Wong
  • Liutauras Vilda
Saloon Keepers:
  • Tim Moores
  • Carey Brown
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
Bartenders:
  • Frits Walraven
  • Himai Minh
  • Jj Roberts

Anouncing open source "neoevents": java events made easy

 
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
java events are good, but writing listeners is always very painful !

I used to do that:


And now I can just do that :



The trick is that the last "ActionListener" is in fact the Class com.googlecode.neoevents.java.awt.event.ActionListener
That simply forward every calls to the annotated method of "this".

Of course, I have implemented (generated) the 70 listener available in all J2SE standard packages.

I've just finished it, I would like to have some people testing/feedbacks and information about the Listeners I am missing.

I would need some help doing exactly the same job but using ASM and on the fly generation (to handle every possible listeners).
and also to write "adapter" for the most used Listeners that are not in the J2SE, but I don't know where to start from !


Someone interested ?

here is the project page, a 1.0.0 version is already available.

Regards,

Eric

 
F is for finger. Can you stick your finger in your nose? Doesn't that feel nice? Now try this tiny ad:
SKIP - a book about connecting industrious people with elderly land owners
https://coderanch.com/t/skip-book
reply
    Bookmark Topic Watch Topic
  • New Topic