Working with AWT Components

If a container is simply the holder and organizer of components, components supply the real work of the user interface. Do not get this confused with layout managers, whose responsibility is to lay out graphically the components contained within a container. Some common AWT components include Buttons, TextArea, TextField, and so on.

AWT components, defined within JBuilder’s Screen Designer, exhibit true object-oriented programming behaviors:

  • Encapsulation describes the binding of data and behavior into one unit.

  • Inheritance is behavior and data passed on from a parent or more accurately from a superclass.

  • Polymorphism means classes operating interchangeably with other objects derived from a common superclass.

Each component, ...

Get Borland® JBuilder™ Developer’s Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.