开发者

How to display console in GUI for java

开发者 https://www.devze.com 2023-03-08 16:21 出处:网络
Is there a possible way to attach开发者_开发技巧 the console to a GUI so that the user will be able to enter commands into the console from the GUI?As long as the program is launched from the console,

Is there a possible way to attach开发者_开发技巧 the console to a GUI so that the user will be able to enter commands into the console from the GUI?


As long as the program is launched from the console, it can read and write from/to the console. There's nothing that makes a Java program "GUI" or "Console" except for the code.

If you want to always have a console regardless of how the program is launched, you could just code a frame to behave as one.

0

精彩评论

暂无评论...
验证码 换一张
取 消