java 读取显示txt内容(Swing),JTextArea
public class TxtSwing extends JFrame { private JTextArea textAreaOutput; public TxtSwing() throws IOException { super("txt"); setDefaultCloseOperation(EXIT_ON_CLOSE); getContentPane().setLayout(new java.awt.FlowLayout()); textAreaOutput = new JTextArea("111", 45, 80);