Julien
Julien

Reputation: 415

How to launch command line Java code inside a JFrame?

I have a Java program which is executed through the basic command line interface. I am wondering about put it in a window JFrame. Is it possible? How can I do?

Thank you.

Upvotes: 3

Views: 2815

Answers (1)

Krishan
Krishan

Reputation: 641

If you want command line inside a jFrame I think it is not a good idea. If the JFrame is started that means the program is already started. You have to start the program using command line or running a executable jar file.So there is no meaning in what you are going to do.

If you want to see your output inside a JFrame rather than in the command line, that can be done. You can look here for details of swing programmimng

Upvotes: 1

Related Questions