I'm doing a mortgage program for my Computer Science Java class. I would like to find a way to use a single JOptionPane dialog box to have the user input the amount and the rate, both of which are doubles.

thank you