How to have the user choose an audio file and play it in Java
I want to be able to make either a GUI or console application where the user clicks a button to select an audio file from their computer (of a compatible format) and it plays, and as I'm completely inexperienced in GUIs, it would be nice if I could be given a hint as to how to implement a pause and play button, as well as a volume slide/dial and a stop button. All I know is I'm gonna have to import java.io.* and sun.audio.* . EDIT My current code is thus: import sun.audio.*; //import the sun.audio package import java.awt.*; import java.io.*; public class Boombox extends Frame implements