|
Share this post! |
| Vote this! |
|
In this article, you will learn about window and some advanced components
which can be added to our window such as Menu Bars and Menus.
Window Fundamentals
The AWT defines windows according to a class hierarchy that adds
functionality and specificity with each level. The two most common
windows are those derived from Panel, which is used by applets, and
those derived from Frame, which creates a standard window. Much of the
functionality of these windows is derived from their parent classes.
Component
At the top of the AWT hierarchy is the Component class. Component is an
abstract class that encapsulates all of the attributes of a visual
component. All user interface elements that are displayed on the screen
and that interact with the user are subclasses of Component. It defines
over a hundred public methods that are responsible for managing events,
such as mouse and keyboard input, positioning and sizing the window, and
repainting. A Component object is responsible for remembering the
current foreground and background colors and the currently selected text
font.
more...
Highly
Recommended Reading After Above
java
0 comments:
Post a Comment