try {
JFileChooser theChooser1 = new JFileChooser();
int returnVal = theChooser1.showOpenDialog(this);
if (returnVal == JFileChooser.APPROVE_OPTION) {
player = new TestPlayer(theChooser1.getSelectedFile());
player.addWindowListener(this);
setVisible(false);
}
}
catch (Exception ex) {
String outMessage = ex.getMessage();