Adding a Terminal into a swing application
问题 I am making an application in java and I want to have a terminal as part of my GUI. Is it possible to get the system terminal (or cmd if windows), and have it as part of my GUI in a panel ? If so do I need a library like http://code.google.com/p/dragonconsole/ or there is some "default" way of getting the standard system terminal ? Thanks 回答1: I don't think a console/terminal library is provided by the java language. However, you can use the Process and Runtime classes to mimic the desired