On Fri, 30 Apr 1999, Marcel Ruff wrote:
> Hi,
>
> Im a bit confused about 2 TclBlend questions:
>
> 1) How do i catch Swing events in TCL?
>
> For instance, a code in Java:
> MouseListener ml = new MouseAdapter() {
> public void mousePressed(MouseEvent e) //
> mouseClicked(MouseEvent e)
> {
> System.out.println("Got a mouse event ...");
> }
> };
> myJTable.addMouseListener(ml);
Did you check the docs for the java::bind command? You might want to
download the 1.2.2 version because the docs were redone and are
much easier to read.
> How do a java::bind this in TCL?
>
call interp.eval(String) from your Java code.
void jmethod(tcl.lang.Interp interp) {
interp.eval("tcl_function arg1 arg2");
}
later
mo
> 2) How do a call a TCL script from JAVA (a callback from Java to my
> jtclsh)?
>
>
> Thanks for any hints or code snippets or URLs with examples ...
>
>
> 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/
>
----------------------------------------------------------------
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/