private URL[] queryForURL() { NewReadingListDialog dialog = new NewReadingListDialog(this); dialog.open(); String urlsS = !dialog.hasBeenCanceled() ? dialog.getURLs() : null; return StringUtils.strToURLs(urlsS); }
/** Invoked when an action occurs. */ public void actionPerformed(ActionEvent e) { CollectionItemsSelectionDialog dialog = new CollectionItemsSelectionDialog(BasicGuideDialog.this); tfAddress.setText(dialog.open("", new ArrayList(), true)); if (!dialog.hasBeenCanceled()) NewReadingListDialog.super.doAccept(); }