Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

need a web browser in my desktop application

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.

like image 420
javadahut Avatar asked May 31 '10 01:05

javadahut


People also ask

Can we convert a desktop application to web?

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.

What is Desktop Application browser?

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.


1 Answers

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

like image 156
Chris Dennett Avatar answered Sep 26 '22 01:09

Chris Dennett