Home arrow Java & J2EE arrow Page 4 - Using Abstract Windowing Toolkit (AWT) In Applications

Features Of The Component Class - Java

A well laid out user interface is an effective means of making applications user-friendly. It is typically used by organizations for accepting orders from customers, getting customer’s feedback on a product, for conducting a market survey on the latest trends in economy.

TABLE OF CONTENTS:
  1. Using Abstract Windowing Toolkit (AWT) In Applications
  2. Read On….Its Not That Abstract
  3. Your Best Buddies….Java’s AWT
  4. Features Of The Component Class
  5. What Holds Components Together…The Container
  6. How To Talk To Your Application
By: Gayathri Gokul
Rating: starstarstarstarstar / 10
September 29, 2003

print this article
SEARCH DEV SHED

TOOLS YOU CAN USE

advertisement
All components are implemented as subclass of the Component class. The subclasses inherit a substantial amount of functionality from the Component class. The basic features of the Component class are:

Drawing Support:
The component class provides paint (), update() and repaint() methods to help us draw the components on the screen.

Event-Handling:
A component is capable of delegating its event (like button click, mouse move) to other classes for processing. We will explore event handling in detail in the later part of the tutorial.

Apperance Control:
The component class provides methods for getting information about the current font, foreground and background color. Custom drawing of components is also made possible because of this.

Image-Handling:
The component class provides an implementation of the ImageObserver interface and defines methods to help components display images.

Sizing And Positioning Of Controls:
The size and position of all components are subjected to the requirement specified by the layout manager. Although each component can somewhat determine its own size and position, the component class provides methods to resize and position components as preferred by the programmer.

Now that we have laid the foundation about Java AWT, we will be examining each of them in-depth in the subsequent parts of this tutorial.

 
 
>>> More Java & J2EE Articles          >>> More By Gayathri Gokul
 

blog comments powered by Disqus
escort Bursa Bursa escort Antalya eskort
   

JAVA & J2EE ARTICLES

- More Java Bugs Lead to More Attacks
- Oracle's Java One Brings News, Surprises
- Oracle Patches Java Runtime Environment
- Apple Syncs Java Update with Oracle
- Spring 3.1 Java Development Framework Compat...
- Jelastic Java PaaS Availability and Pricing ...
- NetBeans 7.1 Released, Supports JavaFX 2
- SolarWinds Releases Newest Version of Java M...
- Free Monitoring Tool for Java Apps on Heroku
- Heroku Adds JCloud Platform Support, Java 7 ...
- Java SE 8 Speculation in Full Swing
- Java SE 7 Now Available
- New JVM Language and Java Reporting Tool
- Java 7 Release Update and New Eclipse Toolkit
- The Best Java Netbeans IDE Plugins

Developer Shed Affiliates

 


Dev Shed Tutorial Topics: