part of the specification of this desktop application is to have a mini browser built in, so that you can enter URL, and navigate the site as you would on a normal browser. Access to the browser page's DOM is required, should let me programmatically change the rendering view of a page, should be cross-platform, renders javascript
JDIC seems outdated and I've heard Mozswing doesn't run on Mac....
Jxbrowser license costs a grand and up.
Is Java the wrong platform to be creating such app? Are there any other solutions out there for building an application like this ?
Thank you.
Any desktop application can be quickly turned into a secure Web server using standard, well-tested open-source components. While others have probably experimented with this technique, which requires only a conventional browser with no plugins, it apparently has never been documented publicly before.
Desktop apps are computer programs and don't need an internet connection in order to be used. A web application, on the other hand, doesn't require any installation and runs on your web browser. Contrarily to the desktop app, a web application needs an internet connection if you want to use it.
You can possibly use the SWT browser widget to create a Mozilla browser using XULRunner. This will give you access to the underlying browser to let you do whatever you like with regards to manipulating the DOM. It's a bit complex though.
http://www.eclipse.org/swt/faq.php#whatisbrowser
You can see an example of DOM interaction via XPCOM here: http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet267.java?view=co
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With