10.28.6.1 Embedding Prolog in Java Applications

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 under the
pbexamples(evaluate) directory (see the example code in PB First Example).

Another example of this is pbexamples(pbtest), which illustrates
several advanced features like: