Is it possible to wrap an executable in a Java Frame?

0

I have my project A in JavaFX , which wants to send an external .exe program. This I do well, the problem is that as requested, that external program should give the feeling of belonging to my project. For this, I would like to wrap the .exe program in a Frame so that it gives the feeling I'm looking for. Is this possible?

    
asked by Alex Marin Lisboa 15.05.2017 в 16:47
source

1 answer

0

Yes, you can use the Process class to invoke the .exe within a JFrame button

Process process = Runtime.getRuntime (). exec ("./ miejecutable.exe");

Next, you include the file.exe inside the .jar of your project so that it remains as an internal resource and that's it.

    
answered by 20.05.2017 в 00:01