Problens - convert awt to swing

I have some problens to find a way to convert these classes of awt:

-SystemColor

references: to the field SystemColor.scrollbar, Systemcolor.control

-Color

references: fiels : color.black, color.red

-Font

referencees: setFont

-BorderLayout

references: add(component, borderlayout.CENTER)

to another classes of swing package.

So, i have these awt classes and i need to convert all these classes to swing classes.

[478 byte] By [AlessandroBRa] at [2007-11-26 14:44:28]
# 1

I don't know about SystemColor (I've never used it), but there's no need to convert Color and BorderLayout. They can be used in both AWT and Swing applications.

The thumb of rule is to not mix AWT and Swing components, for example you should not use both TextArea and JTable in your UI. It's perfectly ok to use other classes in the java.awt packages in your Swing application.

Torgila at 2007-7-8 8:32:10 > top of Java-index,Desktop,Core GUI APIs...