This code ganerate java source of a VB form!
Assumes
All you have to do is design your form, start a project with that form and VB2Java package and send the form to a function as parameter then you'll find in clipboard the code to paste in a Java class with all events.