frozen application

R

Roedy Green

I have an application (swing) in which after calling to a method, this one
remains frozen. The invoked method reproduces an mp3 file.Would solution be
to create a thread?

You never do anything time consuming on the Swing/event thread.

If you have some gui interaction to do, that other thread uses
invokeLater.

See http://mindprod.com/jgloss/thread.html
 
J

julian maisano

I have an application (swing) in which after calling to a method, this one
remains frozen. The invoked method reproduces an mp3 file.Would solution be
to create a thread?

rgds-jm
 
J

julian maisano

You never do anything time consuming on the Swing/event thread.

If you have some gui interaction to do, that other thread uses
invokeLater.

See http://mindprod.com/jgloss/thread.html

Thanks for the link and for your site, it is really amazing

By the way, this compile-time error doesn't appear in your almost complete
list.

Error:
Illegal escape caracter

Example:
String str = new String("C:\Juntos para Siempre.mp3");

Way to solve "\\"
String str = new String("C:\\Juntos para Siempre.mp3");

It seems quite silly, but it could make one (a beginner) lose a few hours :(

rgds-jm
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,537
Members
45,021
Latest member
AkilahJaim

Latest Threads

Top