java environment provides to help to create a user interface (UI). UI is a broad term that it refers to all sorts of communication between an application program and its users. UI is not only the user sees, but the user hears and feels. Even the speed a program interacts with the user is an important part of the program’s UI.
The Java environment provides for the following UI functionality:
Presenting a graphical UI (GUI):
This is used to preferred the UI for most Java programs.
Applets can play sounds but applications. Playing Sounds for information on playing sounds in applets.
Getting configuration information:
Users can specify configuration and information to the applet by using command-line arguments (applications only) and parameters
(applets only). The information about command-line arguments,
Application Command-Line Arguments(in the Writing Java Programs . For information about parameters will Defining and Using Applet Parameters
Saving user preferences using properties:
The information about that applications need to save even when they’re not running, it can use properties. Applets usually can’t write properties to the local file system, due to security restrictions. For information about using an properties.
Getting and displaying text using the standard input, output, and error streams:
Standard input, output, and error are the old way of presenting a user interface. It will be useful for testing and debugging programs, as well as for the functionality it’s not aimed at the typical end of the user. The Standard I/O Streams for the information on using standard input, output, and error.
Applets and applications are commonly present information to the user and the user’s interaction using a GUI. The part of the Java environment called the Abstract Window Toolkit (AWT) contains a complete set of classes for writing GUI programs.
The AWT provides many standard GUI components such as buttons, lists, menus, and text areas. It also includes containers (such as windows and menu bars) and higher-level components (such as a dialog for opening or saving files).
The Anatomy of a GUI-Based Program:
The AWT provides a framework for drawing and event handling. Using a program-specific hierarchy of containers and components, the AWT forwards events (such as mouse clicks) to the appropriate object. The same hierarchy determines the order in which containers and components draw themselves.
Core topics of JAVA UI Online Course
Watch JAVA UI Demo Video