Java中将数据从JTextArea中显示出来:

1. GUI中拖一个JTextArea出来

2. 在程序中把JTextArea剪切到主类下

 java输出JtextArea显示

3. 在建的一个按钮中添加

主要代码:

textArea.append("样本已生成...\n");

textArea.paintImmediately(textArea.getBounds());  

 java输出JtextArea显示

现在已经可以在按键下显示数据了

相关文章:

  • 2022-12-23
  • 2021-07-19
  • 2022-01-07
  • 2022-02-02
  • 2022-02-10
  • 2022-12-23
  • 2021-06-09
猜你喜欢
  • 2022-12-23
  • 2021-12-28
  • 2021-12-28
  • 2021-04-08
  • 2022-01-27
  • 2021-06-11
相关资源
相似解决方案