Java Programming Home Page: Archive: Message #38

Date: Feb 18 2000 08:48:16 EST
From: "Java Programming" <javaProgramming-owner@listbot.com>
Subject: mapping between awt and swing

A student writes:
since Swing is not currently supported by some of the most popular 
browsers,
but necessary due to our text, would you be able to provide a cross
reference list (as the Swing classes and methods arise in our text and
class) that provides the equivalent AWT classes and methods for the 
Swing
classes and methods in our text?

Typically, a swing element is formed with an AWT element pre-
pended with a "j". For example
Applet -> JApplet
Button -> JButton
CheckBox -> JCheckBox
Component -> JComponent

Sorry to say, the inverse is not so easy. Swing provides
a much richer set of classes than AWT.
Regards,
 - D