title: Java multiple Button action
body: <p>I need to develop a Java application with a GUI, which represents an ATM machine. For that, I must read the Account Number and PIN from the "keypad" (9 buttons). I must read each action of each button pressed (the action listener return the value of the button), and concatenate his number to a string that when the button "ok" is pressed it should return the int (<code>Integer.parseInt()</code>). My problem is how can i "wait\stop\freeze" my program until had introduced the numbers and pressed "ok"?</p>
  
  <p>I'm sorry if this question was a bit confusing</p>
  
  <p>Thanks for your help ;)</p>
  
  <p>P.S I have a class for each parte of the ATM machine. EG:Keypad , Screen, ATM..etc.</p>
  
  <p>P.S.S If you wish to see some code please tell ;)</p>