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/