![]() |
|
|||||||
| Development Help Help for building applications or diagnosing problems with WWJ |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Member
Join Date: May 2007
Location: Toulouse
Posts: 92
|
Hi,
I have modified the "Javascript Location-marks Applet" example using JNLP built-in support available in the new Java Plugin included in the Java SE 6 Update 10. The applet starts really fast now with this new plugin and it is more stable .It can be tested here (Firefox 3 or IE 7 and Java SE update 10 is required, you can find it here) What i have modified : html code : Code:
... <applet id="wwjApplet" name="wwjApplet" mayscript code="gov.nasa.worldwind.examples.applet.WWJApplet" width=100% height=70% > <param name="jnlp_href" value="wwjapplet.jnlp"> </applet> ... Code:
<?xml version="1.0" encoding="utf-8"?>
<jnlp href="wwjapplet.jnlp">
<information>
<title>World Wind Java New Plugin Applet Demo</title>
<vendor>NASA</vendor>
<homepage href="http://worldwind.arc.nasa.gov"/>
<description>World Wind Java New Plugin Applet Demo</description>
<description kind="short">World Wind Java New Plugin Applet Demo</description>
<offline-allowed/>
</information>
<security>
<all-permissions/>
</security>
<resources>
<j2se href="http://java.sun.com/products/autodl/j2se" version="1.5+" initial-heap-size="512m"
max-heap-size="512m"/>
<property name="sun.java2d.noddraw" value="true"/>
<jar href="http://worldwind.arc.nasa.gov/java/demos/WWJApplet.jar" main="false"/>
<jar href="http://worldwind.arc.nasa.gov/java/demos/worldwind.jar" main="false"/>
<extension name="jogl"
href="http://download.java.net/media/jogl/builds/archive/jsr-231-webstart-current/jogl.jnlp"/>
</resources>
<applet-desc
name="My Applet"
main-class="gov.nasa.worldwind.examples.applet.WWJApplet"
width="300"
height="300">
<param name="MAYSCRIPT" value="true"/>
</applet-desc>
</jnlp>
Code:
...
<j2se href="http://java.sun.com/products/autodl/j2se" version="1.5+" initial-heap-size="512m"
max-heap-size="512m"/>
...
The side effect of this modification is that the javascript code that calls the applet have to be rewritten from : Code:
document.getElementById('wwjApplet').getSubApplet().method(params);
Code:
document.getElementById('wwjApplet').method(params);
__________________
-Nicolas CASTEL- Thales Alenia Space, GMES program, Toulouse, France- Last edited by vash; 09-12-2008 at 11:54 PM. |
|
|
|
|
|
#2 |
|
WWJ Consultant
Join Date: Jun 2005
Location: Saint-Paul de Vence, Alpes Maritimes, France
Posts: 3,412
|
Thanks Nicolas, this is a nice run down of the new Java plugin features. I'll have to look into it
![]() |
|
|
|
|
|
#3 |
|
Member
Join Date: May 2007
Location: Toulouse
Posts: 92
|
Java 6 update 10 is available now. You could download it on the java se website
__________________
-Nicolas CASTEL- Thales Alenia Space, GMES program, Toulouse, France- |
|
|
|
|
|
#4 |
|
WWJ Consultant
Join Date: Jun 2005
Location: Saint-Paul de Vence, Alpes Maritimes, France
Posts: 3,412
|
BTW: is there an html version using the OBJECT tag instead of the APPLET one which is deprecated?
|
|
|
|
|
|
#5 | |
|
God. Root. What is difference?
Join Date: Sep 2004
Location: Eastern Pennsylvania
Posts: 2,856
|
Quote:
Now, to make my website visitors update so I can use the better code.
__________________
![]() Earth is Square blog PUBLIC NOTICE AS REQUIRED BY LAW: Any use of this forum post, in any manner whatsoever, will increase the amount of disorder in the universe. Although no liability is implied herein, the consumer is warned that this process will ultimately lead to the heat death of the universe. |
|
|
|
|
|
|
#6 | |
|
WWJ Consultant
Join Date: Jun 2005
Location: Saint-Paul de Vence, Alpes Maritimes, France
Posts: 3,412
|
Here are some notes from Sun's Ken Russell about the new plugin:
Quote:
Last edited by patmurris; 01-20-2009 at 04:39 AM. |
|
|
|
|
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Portlet + Applet WorldWind Java + BasicDemo = works ;) | pred | Development Help | 41 | 04-16-2010 06:52 PM |
| EMF and Applet Java | gilou31 | Development Help | 2 | 09-10-2008 07:32 AM |
| need help with worldwind applet | blackscholes | Development Help | 7 | 11-12-2007 09:45 PM |
| Build PluginEngine as a Class Library DLL to support binary DLL plugin development | gohyongkwang | Suggestion Box | 1 | 08-24-2006 06:47 AM |
| HELP, PLUGIN FREEZES !!!! | Unregistered | Add-on & Script Development | 10 | 07-10-2006 10:52 AM |