I wasn't sure how to search for this. I have a swing application. I want to allow the user to open the command prompt and see the output (System.out.println("MY_OUTPUT");
) as they go through the application. However, in most cases this wont be necessary, so it would be an option they can enable after starting the application. Is there any way to do this? Basically, I'm looking for some way to open command prompt or the terminal associated with my program at will at any time. Thanks for the help.
Note1: This has nothing to do with receiving input from the user, it's all about output to the user.
Note2: I realize that I could (and maybe should) do this in a separate swing window with a text area, but everything I have as it is is going to System.out.println();
, and I want to use this same kind of thing in future projects I think, so I would really like to be able to do this using command prompt. Besides, that's my question in the first place. Thanks :D