Chapter 14: Basic Graphical User Interfaces


14.1 Introduction

Previous chapters have described development of console applications in which all input/output is carried out only through the console (video screen and keyboard). With graphical user interfaces (GUIs), the users have a much better way to interact with the programs. The user actually interacts with graphical elements, such as buttons, dialog boxes, menus, and so on.

Programs with graphical user interfaces present the user with a nice and convenient arrangement of graphical components and guide the user in a very effective manner when interacting with the application.

Java provides two important graphical libraries (or packages) of classes. The first library of classes is called the abstract windows toolkit (AWT) and was the only one used in early versions of Java. The second library is called Swing; it is an enhanced collection of graphical classes.

This chapter discusses and explains the design and construction of simple GUIs using the two graphical libraries. Most of the examples presented use mainly the Swing library. Also discussed in this chapter are applets, which are small applications that execute in a Web browser.




Object-Oriented Programming(c) From Problem Solving to Java
Object-Oriented Programming (From Problem Solving to JAVA) (Charles River Media Programming)
ISBN: 1584502878
EAN: 2147483647
Year: 2005
Pages: 184

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net