From COBOL to OOP

Chapter 8: Graphical User Interfaces

Overview

Textual vs. graphical user interfaces

The previous chapters introduced the world of object-oriented programming and databases. In closing this part, we will briefly discuss graphical user interfaces, because they are an absolute must for new programs today. In contrast, older COBOL programs have mostly the conventional textual interface, because they have a terminal origin.

This chapter shows that the difference between the two types of user interfaces is that event-oriented programming requires not only more complex programming and the use of some classes but a totally different approach. Newer COBOL programs have such Windows and HTML interfaces too. However, for the large number of programmers engaged in maintaining processes for the past years, it would be useful to cover this topic too.

8.1 Structure of a Graphical User Interface

A graphical user interface (GUI) differs from a textual interface not only in looking "friendlier" but that the user has many different input options and is not limited to a menu displayed on the screen. These options include the following:

  • Selecting a menu option

  • Clicking the mouse on an object

  • Entering text

  • Copying and pasting an object through the clipboard

  • Changing the window size

Each action offers inputs for a program; even more options are available, depending on the structure of the graphical user interface. Figure 8.1 shows an example of such a mighty graphical user interface.


Figure 8.1: Example of a graphical user interface.

Such a graphical user interface must first be designed. Depending on the programming environment, the...

UNLIMITED FREE
ACCESS
TO THE WORLD'S BEST IDEAS

SUBMIT
Already a GlobalSpec user? Log in.

This is embarrasing...

An error occurred while processing the form. Please try again in a few minutes.

Customize Your GlobalSpec Experience

Category: Integrated Development Environment (IDE)
Finish!
Privacy Policy

This is embarrasing...

An error occurred while processing the form. Please try again in a few minutes.