FileReader entrada=null;
StringBuffer str=new StringBuffer();
try {
entrada=new FileReader("161a.txt");
int c;
while((c=entrada.read())!=-1){
str.append((char)c);
}
System.out.println(str);
String cadena;
System.out.println(str); //hay que convertirla a string, pero como?
jTextField1.setText("hola");
System.out.println(str);
System.out.println("--------------------------------------");
}catch (IOException ex) {
System.out.println(ex);