如何在jtextarea中写这个? [英] How to write this in jtextarea?

查看:75
本文介绍了如何在jtextarea中写这个?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

可以返回这个在我的NetBeans中的jTextArea代码中分配给System.out.printl的内容吗?



我尝试了什么:



因为在结果中我只看到返回中的这些内容。

It's possible to return this whats is assigned to "System.out.printl" in my code in jTextArea in NetBeans?

What I have tried:

Because in result i see only this whats in "return".

推荐答案

System.out是标准输出,也就是控制台。 JTextArea是Java windows框架的一部分,需要通过其类接口进行访问。有可能捕获System.out(通过重定向),然后将内容写入GUI,但它可能比直接编码更麻烦。
System.out is the standard output, aka the console. JTextArea is part of the Java windows framework and needs to be accessed through its class interfaces. It may be possible to capture System.out (via redirection) and then write the content into the GUI, but it's probably more trouble than coding directly.


这篇关于如何在jtextarea中写这个?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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