* @param query
* Query string to search on
*/
private void executeSearch(final int searchEngine, final String query) {
try {
final BrowserField browserField = _browserScreen.getBrowserField();
if (searchEngine == YAHOO_SEARCH) {
browserField
.requestContent(URI.create(
"http://search.yahoo.com/search?p=" + query)
.toString());
} else if (searchEngine == WIKIPEDIA_SEARCH) {
browserField.requestContent(URI.create(
"http://en.wikipedia.org/wiki/Special:Search?search="
+ query + "&go=Go").toString());
}
} catch (final MalformedURIException e) {
BrowserField2Demo.errorDialog("URI.create(String threw "