You gain access to the classes of the java.awt
and javax.swing
packages using the following import statements:
import java.awt.*; import javax.swing.*;
By using classes in the java.awt
and javax.swing
packages,
you gain access to sophisticated graphical machinery.