// selected and fill in the text field with the URI
// Fetch the browser for the webdav protocol and display it.
// Add a listener for the result and update the value of the
// text field for the URI
ContentBrowserManager manager = ContentBrowserManager.getContentBrowserManager();
final ContentBrowserSPI browser = manager.getDefaultContentBrowser();
browser.addContentBrowserListener(new ContentBrowserListener() {
public void okAction(String uri) {
audioSourceTextField.setText(uri);
enablePreviewButton();
browser.removeContentBrowserListener(this);
}
public void cancelAction() {
browser.removeContentBrowserListener(this);
}
});
browser.setVisible(true);
}
setPanelDirty();
}//GEN-LAST:event_browseButtonActionPerformed