我在我正在处理的表单上创建了文本区域,但不知道如何在 netbeans7.0 中的 jtextArea 中显示文本文件的内容
最佳答案
我在 another question 上看到了这个建议早些时候:使用 read() JTextComponent 的方法。
textArea.read(new FileReader(textFile), "here's a description of the file");
关于java - 如何在 netbeans 7.0 的 textarea 中显示 .text 文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6264229/