Conversion tool from awt to swing?

C

Chris Berg

Is there a tool somewhere that can convert the source code of an awt
application to swing?

Chris
 
I

IchBin

Chris said:
Is there a tool somewhere that can convert the source code of an awt
application to swing?

Chris
Do not know of a tool but here is nice article

http://java.sys-con.com/read/36335.htm

--


Thanks in Advance...
IchBin, Pocono Lake, Pa, USA http://weconsultants.servebeer.com
__________________________________________________________________________

'If there is one, Knowledge is the "Fountain of Youth"'
-William E. Taylor, Regular Guy (1952-)
 
R

Roedy Green

Is there a tool somewhere that can convert the source code of an awt
application to swing?

I have a student project outline for such a beast at
http://mindprod.com/projects/swingizer.html

You could cook something fairly mindless up.

It would just a search/replace script to change the names of the AWT
components to the corresponding Swing ones.

See http://mindprod.com/jgloss/swing.html

The Swing equivalent of CheckBox is called a JCheckBox, a JRadioButton
or a JToggleButton. Checkbox uses getState and setState, where
JCheckBox uses isSelected and setSelected. You would have to make a
manual decision whether to use JCheckBox, JRadioButton or
JToggleButton.

you also have the business of contentPane, which may no longer be
necessary in 1.5.

There would be not much point in converting to Swing unless you then
used some of the fancy decoration features not available in AWT.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,482
Members
44,901
Latest member
Noble71S45

Latest Threads

Top