Hi,
I am trying to put a GUI on an mp3 processing program, and I have
moving the IO methods to a seperate thread, although the gui hangs
when I press Search, (it searches and analyzes mp3's a in folder).
I've heard about invokeLater(runnable)- where do I use this?
(My IO class implents Runnable)
cheers, evgenii
Paul Lutus - 30 Sep 2004 16:04 GMT
> Hi,
>
[quoted text clipped - 3 lines]
>
> I've heard about invokeLater(runnable)- where do I use this?
In your code. The code you did not post. Here's the deal:
1. You post the relevant code.
2. We tell you where to put the required call.

Signature
Paul Lutus
http://www.arachnoid.com
c j - 01 Oct 2004 09:44 GMT
> In your code. The code you did not post. Here's the deal:
>
> 1. You post the relevant code.
>
> 2. We tell you where to put the required call.
jesus. take it easy, it's completely unprovoked sarcastic comments
like that that piss me off.
Paul Lutus - 01 Oct 2004 18:32 GMT
>> In your code. The code you did not post. Here's the deal:
>>
[quoted text clipped - 4 lines]
> jesus. take it easy, it's completely unprovoked sarcastic comments
> like that that piss me off.
What sarcasm do you mean? Post the code. Do you really think it is
unnecessarily provocative to say "Let's move ahead and solve your problem"?
You know, in a situation like this, you could read the newsgroup until you
understand how it works, before making your first post. In fact, that is
the universally recommended advice for newbies.

Signature
Paul Lutus
http://www.arachnoid.com
Michael - 30 Sep 2004 18:34 GMT
> Hi,
>
[quoted text clipped - 7 lines]
>
> cheers, evgenii
Look up SwingWorker on www.java.sun.com for some examples or google
for SwingWorker.
You use the stuff when I call a longer running task from the GUI. It
is called from the GUI-Thread (i.e in the routine that handels a
"Click" event).
Michael