Thread java
hammasaidi
Messages postés
9
Date d'inscription
Statut
Membre
Dernière intervention
-
marwa.kb -
marwa.kb -
Bonjour,
j'ai développé un lecteur audio avec java swing mais j'ai une proléme avec le thread qui ne s'arrête pas avec la méthode stop()
voici la méthode actionPerformed
public void actionPerformed(ActionEvent e){
Lecture t = new Lecture();
if(e.getSource().equals(this.b_ouvrir))// bouton ouvrir
{
this.ouvrir();
}
if(e.getSource().equals(this.b_play))// bouton play
{
if(this.fichier == null)
{
this.ouvrir();
this.sound();
t.start();
}
else
{
this.sound();
t.start();
}
}
if(e.getSource().equals(this.b_stop))//bouton stop
{
this.sound();
t.stop();
}
}
merci pour vos aides
j'ai développé un lecteur audio avec java swing mais j'ai une proléme avec le thread qui ne s'arrête pas avec la méthode stop()
voici la méthode actionPerformed
public void actionPerformed(ActionEvent e){
Lecture t = new Lecture();
if(e.getSource().equals(this.b_ouvrir))// bouton ouvrir
{
this.ouvrir();
}
if(e.getSource().equals(this.b_play))// bouton play
{
if(this.fichier == null)
{
this.ouvrir();
this.sound();
t.start();
}
else
{
this.sound();
t.start();
}
}
if(e.getSource().equals(this.b_stop))//bouton stop
{
this.sound();
t.stop();
}
}
merci pour vos aides
Configuration: Windows 7 Safari 532.5
A voir également:
- Thread java
- Jeux java itel - Télécharger - Jeux vidéo
- Waptrick java football - Télécharger - Jeux vidéo
- Java apk - Télécharger - Langages
- Jeux java itel touche ✓ - Forum Logiciels
- Jeux java itel 5360 - Forum Mobile