Guest User

Untitled

a guest
Nov 14th, 2018
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. String ruta2 = "G://Proyecto//src//Sonidos e imagenes//Sonidos//Digestivo";
  2.  
  3. private void lstProcesosMousePressed(java.awt.event.MouseEvent evt) {
  4.  
  5. String Archivo = ruta2 + "//" + lstProcesos.getSelectedValue() + ".wav";
  6.  
  7. try{
  8. Clip sonido=AudioSystem.getClip();
  9. sonido.open(AudioSystem.getAudioInputStream(new File(Archivo)));
  10. sonido.start();
  11. } catch (Exception e){
  12. System.out.println(""+e);
  13.  
  14. }
  15.  
  16. }
Add Comment
Please, Sign In to add comment