I want to identify (get focus on) an existing java swing application and click on 'Load' button to open 'openfiledialog'
<p>I have a java swing application. I am trying to automate my work which basically involves passing a file through openfiledialog to the java application which further processes the file.</p>

<p>I want to identify (get focus on) that existing java swing application and click on 'Load' button to pass the file.
Please help guys.</p>

<p>Thanks in advance.</p>
