Create Java Command Console in JPanel

后端 未结 2 555
臣服心动
臣服心动 2021-01-21 05:05

I want to create a \"Command Console\" similar to the Windows Command Prompt, with command history, etc which is in a JPanel so that it can be added to a JFrame.

What I

2条回答
  •  遇见更好的自我
    2021-01-21 05:29

    BeanShell provides JConsole, a command line console that can be used in your own application WITHOUT the overhead of the rest of the BeanShell functionality. See my example of using it here: Create a "Command" Console

    The BeanShell source is available via SVN from svn co http://ikayzo.org/svn/beanshell

    For more info on JConsole see http://www.beanshell.org/manual/jconsole.html

提交回复
热议问题