Advertisement
Guest User

Untitled

a guest
Mar 25th, 2019
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.88 KB | None | 0 0
  1. -------------------------------------------------------------------------------------------------------------------------------------------------
  2.  
  3. import javax.swing.Japplet;
  4.  
  5. public class "dźwięk" extends JApplet {
  6. public void start () {
  7. play (getDocumentBase (), "Nazwa pliku.format");
  8. }
  9. }
  10.  
  11. -------------------------------------------------------------------------------------------------------------------------------------------------
  12.  
  13. import java.applet.*;
  14.  
  15. public class "dźwięk" extends JApplet {
  16. AudioClip "Nazwa";
  17. public void init {
  18. "Nazwa" = getAudioClip (getDocumentBase (), "Nazwa pliku.format");
  19. }
  20.  
  21. public void start (){
  22. "Nazwa".loop ();
  23. }
  24.  
  25. public void stop (){
  26. "Nazwa".stop ();
  27. }
  28. }
  29.  
  30. -------------------------------------------------------------------------------------------------------------------------------------------------
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement