填空题 某小应用程序窗口中有一个文本框,一个8行10列的文本区以及一个按钮,点击这个按钮时,在文本框中输入的内容会追加到文本区中。 import java.applet.*; import javax.swing.*; import java,awt.event.*; public class TextAPP extends Applet implements ActionListener { JTextField input; JTextArea display; JButton append; public void init1 { input = new JTextField(10); display = new 2; append = new JButton("追加"); add(input); add(display); add(append); input.requestFocus3; display.setLineWrap(true); append.addActionListener(this); } public void actionPerformed(ActionEvent e),{ display. 4 (input.getText5 +" "); } }
  • 1、
【正确答案】 1、JTextArea(8,10) append    
【答案解析】