简体   繁体   English

如何在Jess中将Java GUI制作为applet?

[英]How to make a java gui in Jess as an applet?

I have an interface written in Jess (one of the java libraries) that has a panel and a combo box 我有一个用Jess(Java库之一)编写的接口,该接口有一个面板和一个组合框

I wanna make it run as applet. 我想让它作为applet运行。 so I can embed it on the web! 这样我就可以将其嵌入网络了!

Here is my applet.java, 这是我的applet.java,

package uges.applets;

import java.applet.Applet;
import jess.*;
Applet applet = new Applet();
public class JessApplet extends Applet
{
public void init()
{
Rete engine = new Rete(applet);
try
{
    engine.batch("ug-pro.clp");
    engine.reset();

} catch (JessException e)
{
    // TODO Auto-generated catch block
    e.printStackTrace();
}
}
}

The error was cannot open file ug-pro.clp .. should I put it in a specific folder? 错误是无法打开文件ug-pro.clp ..我应该将其放在特定文件夹中吗? and Can I make my GUI in jess as an applet ? 并且我可以将jess的GUI做成applet吗?

Can I make my GUI in jess as an applet? 我可以将jess中的GUI用作applet吗?

From the info. 信息。 page on Jess . 关于Jess的页面

Jess can be used to build Java servlets, EJBs, applets , and full applications that use knowledge in the form of declarative rules to draw conclusions and make inferences. Jess可用于构建Java servlet,EJB, applet和完整的应用程序,这些应用程序以声明性规则的形式使用知识来得出结论和进行推断。

Rete engine = new Rete();

Note particularly the constructor new Rete(Applet) . 特别注意构造函数new Rete(Applet)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM