title: Java. How to wait?
body: <p>I call a class that creates a jframe and waits from user to input some values. 
  The problem that I experience is that I need to wait these values before to continue.
  So the code is something simple like this</p>
  
  <pre><code>Jframe frame= new jframe(); //here I want the program to show the frame and then wait till   it will be disposed
  // I want a pause here 
  System.out.println(frame.getvalue);
  </code></pre>
  
  <p>Till now the only I could do is to froze the frame before can even appear totally.
  Any help?
  Please keep it simple since I am new to Java.
  THANK YOU!</p>