This code is used to create a swing app for input and an associated applet for web use.
If you are using this for an Android app you will only need the logic class not the other .java files.
This code is courtesy of Carmen Legendre
Simple loan calculator, java swing application with applet component for the web.
JavaGPL-3.0