Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / GUI / October 2004

Tip: Looking for answers? Try searching our database.

GUI hangs when processing.

Thread view: 
c j - 30 Sep 2004 09:14 GMT
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


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.