How can i embed a webpage in a java application? The site is java script (Wikimapia - Let's describe the whole world!)
I tried searching, but can't find anything. When trying to use Lobo's API, i get a no clientlet found error. I am on 64bit linux, using netbeans.
If you want to display HTML content in a Java application, use JEditorPane.
The JEditorPane would just strip out the text, right? There is no text on the page at all, and i need to basically have what's in the browser in the java program.
I was look at things at mozswing, JDIC, but all seem incomplete, and/or lack 64bit support.
If i were to use an applet, is there a way to tell the browser what url to show in a frame? For example, if the code was
<iframe src="http://wikimapia.org/#lat=39.1598818&lon=-106.0702515&z=10&l=0&ifr=1&m=b" width="250" height="250" frameborder="0"></iframe>
could i change it to
<iframe src="http://wikimapia.org/#lat=74&lon=-301&z=10&l=0&ifr=1&m=b" width="250" height="250" frameborder="0"></iframe>
from within an applet? If not, how about through java script?
In the JEdiotorPane you can embedded a web page. Able to added Google site there and navigate basically, in simple words. Did you try anything on that, did you read the Java DOC about that?
I tried the JEditorPane. That doesn't support that website. I just get a big blue block, and a bunch of "noscript" tags. It strips out whatever it can render, which is basically nothing on this website.
I would be fine with launching the system's browser, but i need to be able to manipulate the URL. Wikimapia has the longitude and latitude in it's URL, and i need to be able to change those values, and reload the page.
Is it posible to tell a running browser session to do this? I read somewhere that it may be possible, because browsers detect if a session is already running, and if so, tells it to load a page in a new tab.
As toadaly says, loading scripts on JEditorPane is problematic. I think the best option is start the default browser with the relevant URL you want to execute.