JavaのWebページから画像を取得するためにJtidyパーサーを使用しています。
URL url = new URL("www.yahoo.com");
HttpURLConnection conn = (HttpURLConnection) url.openConnection();
InputStream in = conn.getInputStream();
Document doc = new Tidy().parseDOM(in, null);
NodeList img = doc.getElementsByTagName("img");
ArrayList<String> list = new ArrayList<String>();
list.add(img.item(0).getAttributes().getNamedItem("src").getNodeValue());
上記のコードから画像を取得しています。Javaでその画像をクリックしてリンク「www.yahoo.com」を開く方法は?