Reputation: 3293
Can I display a website like wikipedia, google or etc. in my Java applet? I am looking for something like WebBrowser component in C#. Does anyone know how to achieve this?
Upvotes: 1
Views: 2129
Reputation: 115328
Swing supports basic HTML (I think version 2.0 or so). So, you can try to use it. Also there are a several good pure java fully functional HTML browsers. The question is: why? Java applet runs into browser that knows to show HTML pages. You can easily cause applet to show HTML page into the native browser where it is running now.
Upvotes: 0
Reputation: 14800
There are several browser components, and you can see Best Java/Swing browser component? here on SO for some discussion on the "best".
A thought aside - since an applet is already in a web browser, it might be better to bridge to get the browser to display the website you want in, say, an <iframe>
, rather than load a browser into a browser.
Upvotes: 0