Ciao a tutti...volevo chiedervi se e come si fa a mettere un sottofondo musicale se si apre un JOptionPane, un JFrame o un JDialog ad esempio...
si può fare?
ciao e grazie
Ciao a tutti...volevo chiedervi se e come si fa a mettere un sottofondo musicale se si apre un JOptionPane, un JFrame o un JDialog ad esempio...
si può fare?
ciao e grazie
http://www.emanueleferrante.it
Puoi usare la Java Sound API, vedi tutorial:Originariamente inviato da superpisu
Ciao a tutti...volevo chiedervi se e come si fa a mettere un sottofondo musicale se si apre un JOptionPane, un JFrame o un JDialog ad esempio...
http://java.sun.com/docs/books/tutor...und/index.html
Questa però è una API di "basso" livello ed è più complessa. Ma c'è anche un'altra possibilità, usare AudioClip. Al riguardo leggi questo articolo:
http://www.onjava.com/pub/a/onjava/e...h17/index.html
Andrea, andbin.dev – Senior Java developer – SCJP 5 (91%) • SCWCD 5 (94%)
java.util.function Interfaces Cheat Sheet — Java Versions Cheat Sheet