Campbell Ritchie wrote:You can put anything you like in a text field, as long as it's text. You can pass it as an argument to another method. If, however, you wish to find a path, you might do better to try a file chooser.
how can I do this?
because eclipse take the arguments in the way I wrote before
I use netbeans to run a code and in this code I have to put arguments
I did it in this way Run-->Debug Configurations-->Java Application and select arguments and there I put the path of the files which I used for arguments.
Now I want to build an application and to give arguments not in this way but by writing code (write the path in a JTextField and then use it as an argument).