Java小程序在XUL [英] Java applet in XUL

查看:140
本文介绍了Java小程序在XUL的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个加载Java小程序的HTML文件。它完美
如果在Mozilla直接打开,但是,当我尝试加载它在
XUL的iframe什么也没有发生。

I have an html file that loads a java applet. It works perfectly if opened directly in Mozilla, but, when i try to load it in a XUL iframe nothing happens.

任何人都可以告诉我可能是什么问题?

Anybody can tell me what may be the problem?

由于提前,

PS:在XUL应用程序我测试这是安装在Mozilla
用户铬和HTML文件(applet.html)含量仅仅是这样的:

PS: The XUL application i'm testing this in is installed in mozilla user chrome and the html file (applet.html) content is just this:

 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN"
        "http://www.w3.org/TR/html4/frameset.dtd";>
      <html>
        <head>
        <meta http-equiv="Expires" content="0">
        <title>Protein Viewer (Webmol)</title>
        </head>
        <body id="PDBViewerBody" bgcolor="#ffffff" leftmargin="0"
        topmargin="0" marginwidth="0" marginheight="0">

        <applet code="proteinViewer.class"
        codebase="proteinViewer.jar";
        width="700" height="500">

        <param name="PROTEIN" value="example">
        <param name="PATH" value="">
        <param name="URL" value="http://decsai.ugr.es/~jrgonzalez/test-webmol/";>
        <param name="EXT" value="pdb">
        <param name="PDB_STRING" value="">
        </applet>
       </body>
    </html>

和这里是XUL

<?xml version="1.0"?>

<?xml-stylesheet href="chrome://global/skin/" type="text/css"?>

<window id="main" title="My App" width="315" height="370"
  xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">

  <iframe id="abc" src="chrome://myapp/content/applet.html" flex="1" />

</window>

我工作的XULRunner 1.9.2和Mac OS狮子。

I am working on xulrunner 1.9.2 and Mac OS lion.

推荐答案

我发现在Firefox> = 4的XULRunner> = 2,需要用Java小程序的工作。所以,我用的XULRunner 2,现在,它需要的是java程序完美运行。

I found that for firefox >= 4 xulrunner >=2 is needed to work with java applets. So, I used xulrunner 2 and now java applets is running perfectly as it needed to be.

这篇关于Java小程序在XUL的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆