Check out Desktop#browse(URI)

You will need to build up a suitable URI from the selected phrase in the form that Google expects, something like
"http://www.google.com/search?q=" + word1 + "+" +...