How to choose file in java?
<p>I need to get file path for my java program during <strong>runtime</strong>. Is there any way to use default <em>dialog box</em> to choose a <em>single file</em> and get its full path and name?</p>

<p>Its just picking a file and get its path into a String object</p>

<p>Can you please provide the code for it or a tutorial? </p>

<p>PS: Windows OS</p>