does any body know what is wrong with this code for writing to a jeditorpane?
while(r>0 & r<l & e>0){ file = new File("result.html"); fos = new FileOutputStream(file); dos = new DataOutputStream(fos); dos.writeBytes(Results.substring(r, e)); java.net.URL Content = file.toURI().toURL(); System.out.println(Results.substring(r, e)); tArea[i].setPage(Content); r = Results.indexOf("<a href=",e); e = Results.indexOf("Cached",r); i++; fos.close(); dos.close(); file.delete(); }
I am sure about the data of "file" that I am writing it to my JEditorpane, but what is displayed in "tArea" is not what it should be. this the only part of my program in which "tArea" is being used. it would be good even if somebody tell me how to test it to undrestand the reason.