将(system.out.println(""))的结果放在带有textarea.setText()的textarea中 [英] put the result of (system.out.println(".....") in a textarea with textarea.setText()

查看:255
本文介绍了将(system.out.println(""))的结果放在带有textarea.setText()的textarea中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我必须将输出system.out.println()的结果放在textarea中。但是当我做textarea.setText(返回无效的功能)它不起作用

非常适合任何能给我很好建议的人来解决这个问题。如果没有,感谢你阅读这个

i have to put the output the result of "system.out.println()" in a textarea. but when i do textarea.setText (function that return void) it doesn't work
Greatly appreaciate anyone that can give me good suggestions as to solve this problem.If not, thanks for reading this

推荐答案

println不会返回任何结果。您只需将打印的字符串设置为textarea:

println doesn't return any result. You just need to set the printed string into textarea:
String output = "your output";
System.out.println(output);
textarea.setText(output);


这篇关于将(system.out.println(""))的结果放在带有textarea.setText()的textarea中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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