javafx Loading a page

Download javafx for free

Example

WebView wv = new WebView();
WebEngine we = wv.getEngine();
we.load("https://stackoverflow.com");

WebView is the UI shell around the WebEngine. Nearly all controls for non UI interaction with a page are done through the WebEngine class.

send Javascript alerts from the displayed web page to the Java applications log.