Originally posted by Ernest Friedman-Hill:
Hi,
Welcome to JavaRanch!
By a "DOS based .clp", I'm assuming you mean a command-line Jess program. The above is one of the sample programs that comes in the Jess distribution; the formatting has been removed and all the "<" characters have been HTML-itized, but otherwise, it doesn't look like you've changed it in any way. You're asking how to add a GUI to it? Well, first I have to ask you some questions:
Do you know Java language?
Have you written GUI programs in Java before?
Do you know the Jess language?
Do you want to write your GUI in Java, or in Jess?
[ February 06, 2006: Message edited by: Ernest Friedman-Hill ]
Originally posted by mei galang:
i've started writing GUI in Jess but I'm having difficulty, I would like to learn both and from then maybe I can decide which method is more suitable for my thesis.
Originally posted by Ernest Friedman-Hill:
Well, you'd need to describe those difficulties before we can help -- tell me what you've done, and where you're lost, and I'll see what I can do. Please don't post hundreds of lines of code again -- nobody wants to read that. Just tell me what you're doing. Also let me know what resources you've been using: have you looked at the "frame.clp" example that comes with Jess? Do you have "Jess in Action," which has whole chapters devoted to GUIs? Have you read the manual all the way through?
Originally posted by Ernest Friedman-Hill:
Well, you'd need to describe those difficulties before we can help -- tell me what you've done, and where you're lost, and I'll see what I can do. Please don't post hundreds of lines of code again -- nobody wants to read that. Just tell me what you're doing. Also let me know what resources you've been using: have you looked at the "frame.clp" example that comes with Jess? Do you have "Jess in Action," which has whole chapters devoted to GUIs? Have you read the manual all the way through?
Originally posted by mei galang:
i have read it but im having difficulty to embedd jess to java.
Originally posted by Ernest Friedman-Hill:
So what have you tried, and what have the difficulties been?
Originally posted by mei galang:
Sir, are you referring to Appendix A?
Originally posted by Ernest Friedman-Hill:
(eval "(defrule my-rule (say-hello) => (printout t Hello crlf))")
Has the same effect as
(defrule my-rule
(say-hello)
=>
(printout t Hello crlf))