Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / June 2007

Tip: Looking for answers? Try searching our database.

Converting Swing components to SWT

Thread view: 
Robert Dodier - 15 Jun 2007 17:12 GMT
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
Vitaly - 17 Jun 2007 20:16 GMT
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.

> Hi,
>
[quoted text clipped - 9 lines]
>
> Robert Dodier

I'm protected by SpamBrave
http://www.spambrave.com/
Robert Dodier - 18 Jun 2007 17:07 GMT
> 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++,
[quoted text clipped - 5 lines]
> imitate behaviour AWT classes with SWING API. This should be a parser
> of bytecode that modifies all Java application binary files to be converted.

Vitaly, thanks for your reply. Actually what I am looking for is
something a little different. I have a Swing application and
I would like for it to use SWT (Standard Widget Toolkit) instead.

I am guessing that there is some kind of a correspondence
between Swing and SWT classes. It would be perfectly fine by
me to carry out the conversion by hand, if only there were
some document which lays out the correspondence.

All the best,
Robert Dodier


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.