Running a method while Waiting for input
<p>I have an application in which a JOptionPane is called.
How can I continuously run a method until the yes on the JOption Pane has been selected?</p>

<pre><code>move = JOptionPane.showInputDialog(null, game + "\n" + "Your Move " + game.inputPrompt() + " ?");
</code></pre>

<p>Thank you!</p>
