On Mon, 10 May 1999, Marcel Ruff wrote:

> Hi,
> 
> I use a SWING GUI, invoked by a TCL script.

It sounds like you might be doing this incorrectly. You need to place
and event into the Tcl event queue. If you just call interp.eval() it
will screw things up.

> If i want to callback a TCL procedure from Swing, Swing hangs after
> the second try.
> Im using the tcl.lang.Interp.eval() for the callback
> 
> Using a java::bind MouseListener callback works fine (but is not exactly
> what i need).
> This seems to trigger somehow also my own callback (but delayed).
> 
> How is the eventcallback working?

The interp is running inside another thread.

> Is TCL running in another thread than Java? Can i adjust this?
> 
> What happens to TCL vwait when the MousListener fires?

Try looking at the new docs for Tcl/Java 1.2. If they do not clear
things up then perhaps the docs need a rewrite to make the java::bind
info more clear. You might also want to check out the online version
of my Tcl/Java paper. It talks about event issues in detail. See
http://www.cs.umn.edu/~dejong/tcl/paper.html (or paper.ps).

later
mo

> Perhaps i should try to fire own Events from Java and catch them
> in TCL with java::bind instead of using callbacks with Interp.eval().
>  Does anybody has an example for this?
> 
> Thanks for any hints,
> 
> Marcel
> 
> 
> 
> ----------------------------------------------------------------
> The TclJava mailing list is sponsored by WebNet Technologies.
> To subscribe:    send mail to [EMAIL PROTECTED]  
>                  with the word SUBSCRIBE as the subject.
> To unsubscribe:  send mail to [EMAIL PROTECTED] 
>                  with the word UNSUBSCRIBE as the subject.
> To send to the list, send email to '[EMAIL PROTECTED]'. 
> A list archive is at: http://www.findmail.com/listsaver/tcldallas/
> 

Mo DeJong
[EMAIL PROTECTED]
gimme multimedia group

----------------------------------------------------------------
The TclJava mailing list is sponsored by WebNet Technologies.
To subscribe:    send mail to [EMAIL PROTECTED]  
                 with the word SUBSCRIBE as the subject.
To unsubscribe:  send mail to [EMAIL PROTECTED] 
                 with the word UNSUBSCRIBE as the subject.
To send to the list, send email to '[EMAIL PROTECTED]'. 
A list archive is at: http://www.findmail.com/listsaver/tcldallas/

Reply via email to