Bruce,
could you post a simple Tk Java sample and the java code that you
generate
using the Jacl script. I am trying to get a handle on what you are
describing and an example would be great.
My initial impression of what a Tk like solution for Java would look
like
is similar to the standard C solution except written in Java. I'm not
quite
sure I understand why a preprocessor/code generator is required. Could
you describe what your design criteria were and what the advantages of
this
approach are ?
regards
Chris
Bruce and Molly wrote:
>
> I guess I could do almost everything with Tcl scripts using the "java" command
> to create Swing widgets and call their methods, but I felt the performance
> would be better if I implement the widget commands directly in Java. I am,
> however, using the java command for some things. For example, the parts of
> the "wm" and "winfo" command that I've implemented so far are implemented as
> calls to the "java" command inside Tcl procedures. Also, at present I'm not
> implementing all the methods of Swing widgets in the corresponding widget
> commands. The remainder can be accessed through "java::call".
>
> Bruce
>
> Moses DeJong wrote:
> >
> > Wow, that sounds cool! I will check out your website as soon as I get a
> > free moment. One thing that I was wondering, why do you generate .java
> > code from inside Jacl? Is there something you need to do in Java code
> > that you can not do in Jacl (or Tcl Blend for that matter). If you are
> > having any problems with Jacl or Tcl Blend please tell me about them so
> > they can be fixed in the next (alpha) release.
> >
> > Mo DeJong
> > [EMAIL PROTECTED]
> >
> > On Mon, 15 Feb 1999, Bruce and Molly wrote:
> >
> > > Hi,
> > >
> > > Ironically I tried to send a message to the tcljava mailing list on Friday
> > > about just this subject. Apparently it didn't make it. Here it is again:
> > >
> > > I've recently been working on a Tk-like interface to the Java Swing widgets
> > > (currently called "Swank"). Before I get too far I thought I'd check to see
> > > if anyone else is working on the same thing. My initial goal is to get it
> > > working well enough for the Java version of my NMR data analysis program
> > > (http://www.nmrview.com) to work. Ultimately I hope to have access to all
> > > Swing widgets and provide a significant level of backwards compatibility to
> > > Tk. I'm generating the Java code using a Jacl script that automatically
> > > writes the Java code based on the methods used in each of the Swing widgets
> > > (the 600 lines of Tcl currently generates about 17000 lines of Java code). At
> > > present I can create and configure any of the Swing widgets with Tk like
> > > commands. All the Tk widgets but the canvas and text widgets can be created.
> > > I'm currently working on adding the Tk specific widget commands. The canvas
> > > and text widgets will obviously be the most work, but I think that using
> > > Java2D and the code writing technique I can get something for the canvas
> > > widget that is at least useful without a huge amount of effort. Any interest
> > > in this?
> > >
> > > Bruce Johnson
> > >
> > >
> > >
> > > Christopher Hylands wrote:
> > > >
> > > > I have not heard of anyone evaluating using Swing to implement Tk.
> > > > I think it would be easier to use Swing than to use AWT, but it would
> > > > still be a fairly large task to get right. The canvas and the text
> > > > widget are fairly complex.
> > > >
> > > > I've cc'd the Tcl Java mailing list here to see if anyone wants chime
> > > > in. . .
> > > >
> > > > -Christopher
> > > >
> > > > --------
> > > >
> > > > Hi Chris,
> > > >
> > > > I noticed in the Jacl FAQ the note about the difficulties
> > > > implementing Tk using the AWT classes. Has anyone
> > > > evaluated if this is still the case with the new
> > > > Swing classes.
> > > >
> > > > regards
> > > > Chris
> > > > --
> > > > Chris Avis ([EMAIL PROTECTED])
> > > > _--_|\ RAMA Technologies Pty Ltd, 28 Walters Drive
> > > > / \ Osborne Park, Western Australia 6017, Australia
> > > > \_.--._/ Tel: +61 8 9445 7999 Fax: +61 8 9445 7666
> > > > v http://www.rama-tech.com
> > > > --------
> > > >
> > > > ----------------------------------------------------------------
> > > > 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/
> > >
> >
> > ----------------------------------------------------------------
> > 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/
--
Chris Avis ([EMAIL PROTECTED])
_--_|\ RAMA Technologies Pty Ltd, 28 Walters Drive
/ \ Osborne Park, Western Australia 6017, Australia
\_.--._/ Tel: +61 8 9445 7999 Fax: +61 8 9445 7666
v http://www.rama-tech.com
----------------------------------------------------------------
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/