no answer :(
Type: Posts; User: nasi
no answer :(
This is similar to what I am doing and generates nullPointer thread. more over it doesn't write the Content to my JEditorPane (tArea) properly
package test;
import java.io.DataOutputStream;...
it is multiple classes, I can't post all of it. the following is the code that generates this thread
while(r>0 & r<l & e>0){
dos.writeBytes(Results.substring(r, e));
...
I solved the problem by clearing the stream description property but now I got this exception
Exception in thread "Thread-14" java.lang.NullPointerException
at...
this is the loop
File file = new File("result.html");
while(r>0 & r<l & e>0){
fos = new FileOutputStream(file);
dos = new DataOutputStream(fos);
I call it in a while loop which is in a method as a part of mouse listener class.
I need to refresh the content of a JEditor Pane multiple times, I am using the following code for this purpose
java.net.URL Content = file.toURI().toURL();
if (Content != null) {...