title: wait for a jbutton click to continue with program execution java
body: <p>how can I know in main method that one button is click to continue with the execution because the code doesn't work inside the actionperfomed button.</p>
  
  <p>For example this is my main method</p>
  
  <pre><code>    public static void main(String args[]) {
  jwindows jw = new jwindows ();
  
  //stop until a button inside the jwindows is clicked
  
  // codeExecuteAfterButtonClick 
  
  }
  </code></pre>