java What action should be considerd for button using as a browse to attach file or directory
<p>I make a JFrame form which contains two text fields and two buttons. 
I need this form works as
when user clicks first button will browse to attach file 
and second button will browse to attach directory. </p>

<p><a href="http://www.freeimagehosting.net/uploads/2556c33f29.png" rel="nofollow">http://www.freeimagehosting.net/uploads/2556c33f29.png</a></p>
