填空题

以下是一个缓冲式输入的示意程序,程序的界面有一个文本框和一个文本区,在文本框中输入要读入显示的文件名,在文本区中显示该文件的内容。
import java.io.* ;import java.awt.* ;import javax.swing.* ;import java.awt.event.*;
public class Test30 extends JFrame implements ActionListener{
JTextArea text; JTextField fileName; BufferedReader in;
Test30(){
super("缓冲式输入示意程序");
Container con=this.getContentPane();//获得内容面板
con.setLayout(new BorderLayout());
fileName=new JTextField("输入文件名");
fileName.addActionListener(this);
text=new JTextArea(10,20); text, setBackground(Color.cyan);
JScrollPane jsp=new JScrollPane(text);
con.add(jsp,BorderLayout. CENTER);
con.add(fileName,"North");
setVisible(true);pack();
}
public void actionPerformed(ActionEvent e){
String s;
if(e.getSource()==fileName){
try{
in=new BufferedReader(new______);
} catch(FileNotFoundException el){}
text.setText(null);
try{
while((s=______)!=null)
text.append(s+"\n");
} catch(IOException exp){}
}
}
public static void main(String args[]){new Test30();}
}

【参考答案】

FileReader(FileName.getText())
in.readLine()