Yes, such converter can be written. I did such tool for my prev. company.
And now I plan to develop this tool in some language (Java, C#, C++,
etc.),
pieces of the code are ready. There are two approaches to AWT->SWING
conversion:
- convert Java sources, for this you should develop a Java source language
parser;
- substitute all references to AWT components with some classes that
imitate
behaviour AWT classes with SWING API. This should be a parser of bytecode
that modifies all Java application binary files to be converted.
"Robert Dodier" <> wrote in message
news: ps.com...
> Hi,
>
> I wonder if there is some straightforward way (automated or not)
> to convert Swing components to SWT. If there is a program to
> do it automatically, great, but if there are just some written
> instructions to follow by hand, that's great too.
>
> Searching around the web I found this: http://www.swtguibuilder.com
> Haven't tried it; didn't find anything else.
>
> Any light you can shed on this question is much appreciated.
>
> Robert Dodier
>
I'm protected by SpamBrave
http://www.spambrave.com/