SWING PACKAGE DESCRIPTION:
SWING PACKAGE DESCRIPTION:
Swing components range from the very simple, e.g. JLabel, to the very complex, e.g JTable, JTree. Almost all swing components are derived from a single parent called JComponent which extends the AWT Container class. You now see why swing is called a layer on top of AWT. Top-level containers though like JFrame, JDialogue and JApplet do not inherit from JComponent but rather serve as places where any class that inherits from JComponent can paint itself. We'll explain swing components and the containment hierarchy later.
Am sure you must have realised that every class in swing that compares to an AWT equivalent is prefixed with 'J', this is because all the names have already been taken.
No comments:
Post a Comment