Hey everyone,
I had a quick question about JOptionPanes that I hope someone can answer. I am creating a loan program that takes in a users loan, then they decide between 3 different loan options and click calculate and it spits out the monthly payment, the interest paid, so on and so forth, it will also loop all the way through each payment showing how much they paid. I used a JOptionPane to display all the information and once you click on on the new window another window pops up showing the next months information. I need to figure out a way to either give the close [X] in the top of the window, or use a different option pane to get another button to allow me to exit the JOptionPane to go back to the original GUI, an example of ym code is this: