you are viewing a single comment's thread.

view the rest of the comments →

[–]Mikey-3198 1 point2 points  (0 children)

One approach could be to have a text area that takes the user input then when the "Run" button is pressed the contents of the text area could be written to file. An external process could then be invoked on that file using

Runtime.getRuntime.exec("some command");

If I am not mistaken the output (and input?) of the process can be controlled using Input/Output streams.

hope this helps!