for(int i=1;i<mainNotaL ist.size()+1;i+ +)
{
Thread currentThread=n ew Thread(porteImg s[i].getNotam().get SoundLayer());
porteImgs[i].activate();
porteImgs[i].repaint();
currentThread.s tart();
try {
currentThread.j oin();
} catch (InterruptedExc eption ex) {
Logger.getLogge r(Ney1View.clas s.getName()).lo g(Level.SEVERE, null, ex);
}
}
I have sound parts to play, but before each part i need to activate(which causes to draw sign on which part is playing ) and after i call repaint() to draw it.
This gives me the sounds sequentially which was my intention, but drawing the signs for the parts executes after all sounds are played, when sounds finished finally i have my drawn sign all of them at the same time.How can i get them one by one drawn instead of at the same time ?
Thanks in advance.
{
Thread currentThread=n ew Thread(porteImg s[i].getNotam().get SoundLayer());
porteImgs[i].activate();
porteImgs[i].repaint();
currentThread.s tart();
try {
currentThread.j oin();
} catch (InterruptedExc eption ex) {
Logger.getLogge r(Ney1View.clas s.getName()).lo g(Level.SEVERE, null, ex);
}
}
I have sound parts to play, but before each part i need to activate(which causes to draw sign on which part is playing ) and after i call repaint() to draw it.
This gives me the sounds sequentially which was my intention, but drawing the signs for the parts executes after all sounds are played, when sounds finished finally i have my drawn sign all of them at the same time.How can i get them one by one drawn instead of at the same time ?
Thanks in advance.