/** * mediaFileSelected - called from FileBrowseFrame, sets the selected file and closes existing * windows starts playback of media file * * @param f the file that has been selected for playing */ public void mediaFileSelected(File f) { mediaFile = f; fbf.dispose(); df.dispose(); // System.out.println("Playing "+f.getName()+" from "+targetBrowseAddress.getHostName()+" to // "+targetPlayAddress.getHostName()); openControl(); }
public void browse() { fbf = new FileBrowseFrame(this, targetBrowseAddress); fbf.setVisible(true); }