gpt4 book ai didi

java - 如何在 Jess 中制作一个 java gui 作为小程序?

转载 作者:行者123 更新时间:2023-12-01 15:23:08 24 4
gpt4 key购买 nike

我有一个用 Jess(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();
}
}
}

错误是无法打开文件 ug-pro.clp ..我应该将其放在特定文件夹中吗?我可以在 jess 中将 GUI 作为小程序吗?

最佳答案

Can I make my GUI in jess as an applet?

来自info. page on 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.

Rete engine = new Rete();

特别注意构造函数 new Rete(Applet) .

关于java - 如何在 Jess 中制作一个 java gui 作为小程序?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10574273/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com