Wednesday 13 May 2015

Programming the User Interface Introduction and Basic Concepts

  This chapter covers the various tools Java provides to help you build the user interface for your Java application or applet. Java provides a rich set of tools to make platform-independent, easy-to-use graphical user interfaces. Your Java project can use three groups of interface elements:
  • Drawing: Non-interactive interface items such as lines, rectangles, ovals, and arcs in both filled and unfilled versions.
  • Interactive elements: Interface elements that enable the user to interact with your project. They consist of things such as buttons, menus, and text areas.
  • Images: Bitmaps that can be built on-the-fly or read in as GIF or JPEG format files.

If you've ever programmed a graphical user interface (GUI) for the Mac, Windows, or UNIX, you'll find that the basic tools are familiar. Java is catching on because, unlike previous languages, the interface is pretty much platform independent so that you don't have to maintain multiple code bases-one for each target platform.  

No comments:

Post a Comment