Create Java Command Console in JPanel

后端 未结 2 420
臣服心动
臣服心动 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:41

    To include BeanShell into your application, add the .jar-files from the BeanShell download page to your Java project and see the BeanShell doc section "Calling Beanshell from your Application" for examples how to call Beanshell with direct calls or by evaluating the commands from your shell.

    See also the Quickstart Guide for other ways and examples how to use BeanShell.

提交回复
热议问题