Hi guys,
I have developed a Java GUI by using Netbean. The user interface will get the user parameters that are needed by a c++ program (which I also developed). Upon clicking the run button java will execute the c++ program with the inserted parameters by launching and X-term session (using Runtime.getRuntime().exec(command) ) . Everything works fine in this way. However I do not find very elegant to launch an external terminal to run the C++ code. Is it possibile to have a terminal that is integrated within the java GUI? And run the C++ code within it?
Moreover, since the C++ code may take several hours to finish the job is there a way to read its output and use it in order to make, for example, proceed a progress bar?
Thank you so much for the help!