threads to show progress in java
Here's the situation: My code downloads a file from the internet, also
displays its size and filename.
The problem is that when I'm downloading that file, nothing appears in
that JTextArea and the frame is like "frozen" until the download is
complete.
I even tried to put a progress bar using swingworker class (i asked some
days ago requesting information and I didn't understand how to "integrate"
the swingworker methods you gave me before in my code. I was told that
using Matisse is not recommendable at all in that sort of cases. So I'm
not able to use swingworker.
I've been researching, and I think that the suitable way for me is using a
thread. With, or without a progress bar. Just looking for simple code, I'm
a beginner, thanks
No comments:
Post a Comment