If you have an advanced Prolog application that needs a GUI you can write a stand-alone Java application that handles the GUI and set up the Prolog server to call the right predicates in the Prolog application.
An example of how to do this can be found in the
qplib('prologbeans/demo') directory (
evaluate.pl, see the
example code in pbn-exa).
Another example of this is
pbtest.pl, which illustrates
several advanced features like:
> java -classpath "%QP_PATH%\java3.5\prologbeans.jar;." PBTest (Windows), or % java -classpath "$QP_PATH/java3.5/prologbeans.jar:." PBTest (UNIX)