Hello,
My agent has a Rete engine (m_rete) that I wish to access through a Console.
Therefore the agent's GUI has a menubar with an item "Jess prompt". The
eventhandler for this item contains the following code in the switch
statement:
case JESS_PROMPT:
final Console c = new Console("Agent - Jess engine", m_rete, true);
c.addWindowListener(new WindowAdapter()
{
public void windowClosing(WindowEvent event)
{
c.setVisible(false);
c.dispose();
}
});
String[] argv = new String[0];
c.execute(argv);
break;
This works fine, but after I have closed the console window, I am unable to
open it again. Furthermore it seems as if my GUI refuses to handle any
events (for example from other items in the menubar) after using the
console. Does anyone have a clue to the cause of this problem? Is something
wrong with the code above?
Greetings,
Sander
--------------------------------------------------------------------
To unsubscribe, send the words 'unsubscribe jess-users [EMAIL PROTECTED]'
in the BODY of a message to [EMAIL PROTECTED], NOT to the list
(use your own address!) List problems? Notify [EMAIL PROTECTED]
--------------------------------------------------------------------