pivot-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jérôme Serré <jerome.michel.se...@gmail.com>
Subject RE: applet shows gray window
Date Mon, 10 Oct 2011 09:06:59 GMT
Try that :
<script src="http://java.com/js/deployJava.js"
type="text/javascript"></script>
<script type="text/javascript">
function loadWindow() {
    var attributes = {
    	code:"org.apache.pivot.wtk.BrowserApplicationContext$HostApplet",
        width:"60%",
        height:"256"
    };
    var libraries = [];
    	libraries.push("lib/pivot-core-2.0.jar");
    	libraries.push("lib/pivot-wtk-2.0.jar");
        libraries.push("lib/pivot-wtk-terra-2.0.jar");
		libraries.push("lib/pivot-charts-2.0.jar");
		libraries.push("lib/pivot-jfree-2.0.jar");
		libraries.push("lib/jfreechart-1.0.13.jar");
		libraries.push("lib/jcommon-1.0.16.jar");
        attributes.archive = libraries.join(",");
    var parameters = {
    	codebase_lookup:true,
        java_arguments:"-Dsun.awt.noerasebackground=true
-Dsun.awt.erasebackgroundonresize=true",
        application_class_name:"<entry class>"
    };
     deployJava.runApplet(attributes, parameters, "1.6");
}
</script>
<style xmlns="http://www.w3.org/1999/xhtml" type="text/css">
	div {
		position : relative;
		margin-top : 2%;
	}
</style>
</head>

<body>
	<div align="center"><script
type="text/javascript">loadWindow()</script></div>
</body>

Jérôme Serré
____________________________
Manage your cellar
http://www.macave.eu


-----Message d'origine-----
De : pan peter [mailto:pan.peter1978@gmail.com] 
Envoyé : lundi 10 octobre 2011 11:00
À : user@pivot.apache.org
Objet : applet shows gray window

I have developed a java application that runs fine. but after i pack it into
jar file through eclipse, i write html for applet with the code

<applet code="org.apache.pivot.wtk.BrowserApplicationContext$HostApplet"
archive="lib/pivot-core-2.0.jar,lib/pivot-wtk-2.0.jar,lib/pivot-wtk-terra-2.
0.jar,lib/pivot-tutorials-2.0.jar,lib/servermanager.jar" 
width="860" height="680">      </applet>
</APPLET>  

it shows gray window in iexplorer. the servermanager.jar is placed under lib
folder same as pivot jars, I have test this html with HellowJava and that
works. 

any suggestions? 

--
View this message in context:
http://apache-pivot-users.399431.n3.nabble.com/applet-shows-gray-window-tp34
08960p3408960.html
Sent from the Apache Pivot - Users mailing list archive at Nabble.com.


Mime
View raw message