Java / swing:控制台组件? [英] Java/swing: console component?

查看:186
本文介绍了Java / swing:控制台组件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在寻找一个组件,我可以在Swing中使用它作为GUI控制台

I am looking for a component I can use in Swing that acts as a GUI console which


  • 有一个滚动条的文本区域可以设置为特定字体

  • 具有主机应用程序可以获取的InputStream和OutputStream

  • 接受键盘输入, ,并将该输入发送到InputStream

  • 将OutputStream文本打印到控制台的末尾

  • 有某种类型的FIFO- ish属性,通过自动舍弃最早的文本,可以限制控制台中显示的文本量

  • 允许对控制台进行复制(但不能剪切或粘贴或任何其他编辑)文本到系统剪贴板

  • has a text area with scrollbars that can be set to a particular font
  • has an InputStream and an OutputStream that a host application can obtain
  • accepts keyboard input, prints it onto the end of the console text, and sends that input to the InputStream
  • prints the OutputStream text to the end of the console
  • has some kind of FIFO-ish property whereby the amount of text displayed in the console can be limited by automatically discarding the oldest text, when appropriate
  • allows copy (but not cut or paste or any other editing) of the console text to the system clipboard

这类似于Eclipse中的控制台选项卡。

This is kind of like the Console tab in Eclipse.

有没有提供这个的好库?

Are there any good libraries that provide this?

推荐答案

这足够了吗?

这篇关于Java / swing:控制台组件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆