Michael Dunn wrote:> Please provide solution
please provide code:
1) adding actionListener to the button, or
2) how mentioned textfields are 'seen' by ClearHandler
Henry Wong wrote:
The synchronization mechanism and wait-notify mechanism are not different ways of doing the same thing. In fact, wait-notify depends on synchronization. In "threads speak", the first is an implementation of a mutex, and the second is a implementation of a condition variable.
The Sun tutorial on threads is a good start to learn the topic.
http://java.sun.com/docs/books/tutorial/essential/concurrency/
Henry
Manish Chhabra wrote:Hi Vishnu,
It would be easier to identify the problem if you share some code.
By the way are you flushing out and closing the data stream before your program finishes?
Check out flush( ) method in BufferedWriter (I am guessing you are using BufferedWriter, there is no such class "BufferedStreamWriter" in java io).
Cheers,
Manish
Nicola Garofalo wrote:The problem is that the method name is readLine() not readline().
Anyway if you clicked on the link you created with your post you would have seen in the API documentation the answer to your question.
Jesper Young wrote:Look at the API documentation of those classes. BufferedReader has two constructors, which both take a Reader object. So to create a BufferedReader you'll need another Reader object first, for example a FileReader. You can't pass a FileInputStream directly to the constructor of BufferedReader (because a FileInputStream is not a Reader). Likewise for BufferedWriter.