Home arrow Java & J2EE arrow Java's Basic User Interface Components

Java's Basic User Interface Components

To simplify user interaction and make data entry easier, you can use java controls. Controls are components, such as buttons, labels and text boxes, that can be added to containers like frames, panels and applets. The Java.awt package provides an integrated set of classes to manage user interface components.

TABLE OF CONTENTS:
  1. Java's Basic User Interface Components
  2. Adding a Control to a Container
  3. The Button Class
  4. The Label Class
  5. The Checkbox Class
  6. The CheckboxGroup Class
  7. The Choice List Class
  8. The TextField and TextArea Class
  9. Setting a Password Character
  10. TextArea
By: Gayathri Gokul
Rating: starstarstarstarstar / 22
October 20, 2003

print this article
SEARCH DEV SHED

TOOLS YOU CAN USE

advertisement
To simplify user interaction and make data entry easier, you can use java controls. Controls are components, such as buttons, labels and text boxes, that can be added to containers like frames, panels and applets. The Java.awt package provides an integrated set of classes to manage user interface components.
Components are placed on the user interface by adding them to a container. As we saw in the previous tutorial, a container itself is a component. The easiest way to demonstrate interface design is by using the container you have been working all along with - the Applet class. The simplest form of Java AWT component is the basic User Interface Component. You can create and add these to your applet without needing to know anything about creating containers or panels; in fact, your applet, even before you start painting and drawing and handling events, is already an AWT container. Because an applet is a container, you can put other AWT components, such as UI components or other containers, in it.
In this tutorial, you'll learn about the basic UI components (controls) like labels, buttons, check boxes, choice menus, and text fields. The classes involved and take a look at each component and its function with coded illustrations. The following table gives a list of all the Controls in Java AWT and their respective functions.

 
 
>>> 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: