From df3737d23e911958966e3f77bc17b98354e4b3f3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=AE=B8=E8=BD=B2?= Date: Wed, 11 Oct 2023 02:06:55 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=20DebugBox.java=20=E7=9A=84?= =?UTF-8?q?=E6=B3=A8=E9=87=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../component/module/vbox/components/DebugBox.java | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/src/main/java/org/jcnc/jnotepad/component/module/vbox/components/DebugBox.java b/src/main/java/org/jcnc/jnotepad/component/module/vbox/components/DebugBox.java index f6d59e5..a48f353 100644 --- a/src/main/java/org/jcnc/jnotepad/component/module/vbox/components/DebugBox.java +++ b/src/main/java/org/jcnc/jnotepad/component/module/vbox/components/DebugBox.java @@ -3,17 +3,28 @@ package org.jcnc.jnotepad.component.module.vbox.components; import org.jcnc.jnotepad.component.module.TextCodeArea; /** - * Debug终端界面。 + * 调试信息显示界面。 * + *

这个类实现了一个用于显示调试信息的界面,它是TextCodeArea的子类,并在构造函数中将其设置为不可编辑状态。

+ * + *

调试信息可以通过调用setText方法将文本添加到界面中。

* * @author cccqyu */ public class DebugBox extends TextCodeArea { + /** + * 创建DebugBox对象的构造函数。 + */ public DebugBox() { super(); this.setEditable(false); } + /** + * 设置调试信息的文本内容。 + * + * @param text 要显示的调试信息文本 + */ public void setText(String text) { this.appendText(text); }