[Tcl Java] RE: [Tcl Java] RE: [Tcl Java] Re: [Tcl Java] more 1.2.4 questions

1999-10-28 Thread Moses DeJong
On Thu, 28 Oct 1999, Thomas McKay wrote: > How would I do it in Java? This is what I have now... ACK, NO! Do not call this.getClass() to get the second argument to the ReflectObject.newInstance() method. You need to use the actual Java Class object that the instance will be reflected as. For in

[Tcl Java] RE: [Tcl Java] RE: [Tcl Java] Re: [Tcl Java] more 1.2.4 questions

1999-10-28 Thread Thomas McKay
How would I do it in Java? This is what I have now... tclObject = ReflectObject.newInstance( interp, this.getClass(), this ); tclObject.preserve(); Would it be as simple as interp.renameCommand( tclObject.toString(), "rect20" ); Wou