title: How to start a java program?
body: <p>I have written a java program and I am running it through command line like "java MyProgram"</p>
  
  <p>Now I want to have a GUI that have a start, pause and stop button. How to start that java program by clicking on start button. How to pause it and how to stop it?</p>