Hi,

I have a problem regarding the jess.Console class. 
What i try to do is simply presenting the console as response to the user pushing a 
button in the GUI.

The result I get is termination of the JDialog containing the JButton as soon as the 
action handler tries to run the console.execute command.

The same result is received if  I choose a JFrame to contain the JButton. 

I am using Visual Cafe as IDE and the tool builds for example a JFrame to contain an 
inner class which implements the different listerners and checks the source and then 
calls a method in the outer class.
My first suspecion was that I had made an error and accidently removed som 
autogenerated code but when I substitute the code in the eventhandler method to some 
other code for example a simple System.out.println("hello World"); theJFrame or 
JDialog is still running but as soon as I try the method with the start of jess 
Console the whole program stops and the VM returns without errors (at least visible 
ones).


Excerpt of the code supposed to start the Console.
 
private void startJessConsole()
{
        Rete rete=new Rete();
        Console console=new Console("My Console",rete);
        String[] args=new String[1];
        args[0]=new String();
        console.execute(args);
}


Finally when I try to start the Console from a main method everything works fine.

I run jess60b3.

/best regards

Mikael Rundqvist



--------------------------------------------------------------------
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]
--------------------------------------------------------------------

Reply via email to