I think you should look into using a proper IDE like Eclipse or Netbeans for this kind of stuff. That would also give you the power of inline validation.

When it comes to adding a Java bean/class...