I've looked on Google for a while, searching how to play audio files, and most of the sources I found were with using java.applet.*
, but I am trying to look for a way I can put it inside my actionPerformed()
method.
public void actionPerformed(ActionEvent event) {
if(event.getActionCommand().equals("Play")){
//Short Audio File Playing Here
}
}
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…