Logo 
Search:

Java Forum

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds

Observable Question

  Asked By: Ricky    Date: Jul 05    Category: Java    Views: 6856
  

If I have code like ....

while ((s = stdInput.readLine()) != null) {
setChanged();
notifyObservers(s);
System.out.println(s);
}
... that is part of an class that implements Observable interface,
why do I only see the output after loop has finished completing?
I can see the output from the println statement happening line by
line during execution.
But writing to my JTextArea only happens once the readLine() is null,
NOT in real time like my print statement.

Share: 

 

No Answers Found. Be the First, To Post Answer.

 
Didn't find what you were looking for? Find more on Observable Question Or get search suggestion and latest updates.




Tagged: