I am just beginning to play around with java.net and URLs, and have the following code snippet:
URL home = new URL("http://www.google.com");
JEditorPane ep = new JEditorPane();
ep.setPage(home);
ep.setEditable(false);
ep.addHyperlinkListener(new HLinkListener(ep));
JScrollPane scroll = new JScrollPane(ep);
Where the JEditorPane is inside of a JFrame, and HLinkListener is a seperate class with just the HyperlinkListener interface and hyperlinkUpdate method.
This works for what I want it to, just a basic GUI representation of a URL, but is unable to handle any pages that involve CSS or JavaScript. Google has turned up many all inclusive packages, like Cobra, but what I was wondering is if anybody has any experience with a particular Java JS/CSS parser, or if there was a basic way, ie one with only a couple of imports and new objects, that would allow JS and CSS to be displayed.