try块应该改成这样try{
text_bin=new FileInputStream("D:\1.txt");
jTextArea1.setText("您好");
text_bin.close();
}
catch(FileNotFoundException filee){}
catch(IOException ioe){}
text_bin=new FileInputStream("D:\1.txt");
jTextArea1.setText("您好");
text_bin.close();
}
catch(FileNotFoundException filee){}
catch(IOException ioe){}
void jButton1_mouseClicked(MouseEvent e) {
FileInputStream text_bin;
byte input[]=new byte[2000];
try{
text_bin=new FileInputStream("D:\1.txt");
jTextArea1.setText("您好");
text_bin.close();
}
catch(FileNotFoundException filee){}
catch(IOException ioe){}
}而且鼠标监听在jbinit中也已经写完