Reputation: 147
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
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
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