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).
I want to find a word in a text file and then to take a part of it and to
save it in a String.
for example I have this part of text
<rdf:RDF
xmlns:rdf='http://www.w3.org/1999/02/22-rdf-syntax-ns#'
and when I find the word ''xmlns:'' I want to take the word after : till =
(rdf in this case) and to put it in a string.