rak
rak

Reputation: 147

Web view from java desktop application

I developed a Java desktop application in eclipse IDE.I need to include web view to a particular site(php) on a button in my JavaFrame.How is that possible?please help.

Upvotes: 0

Views: 2776

Answers (2)

Andrew Thompson
Andrew Thompson

Reputation: 168845

See Desktop.browse(URI) which:

Launches the default browser to display a URI. If the default browser is not able to handle the specified URI, the application registered for handling URIs of the specified type is invoked. The application is determined from the protocol and path of the URI, as defined by the URI class. ..

Upvotes: 1

jaxb
jaxb

Reputation: 2077

Do you want to open PHP page from your developed application?

In case you want to open URL in browser use Runtime. Please find the article: http://www.mkyong.com/java/open-browser-in-java-windows-or-linux/.

If you want to show the web-page in your java application you can use jdic. You can find jdic APIs and forum here: http://java.net/projects/jdic.

Upvotes: 1

Related Questions