java simple investment calculator by using a gui and result displayed in table
I am having trouble understanding how to put together a program that will execute by gathering user input information through a GUI and then displaying the results in a table format.
By using a gui (breezy swing):
Collect (inputs) from user:
1. the investment principle
2. interest rate
3. number of years to invest
Click calculate button.
The result (outputs) should show a table that displays:
1. 20 years worth of data
2. principle at the beginning of year
3. interests earned
4. principle at the end of the year
I have written javacode and understand calculations and the for loop that I will use for the 20 year output table. I also have an understanding breezy swing but cannot understand how to implement a gui and then display the results in a table format.