Capítulo de livro

User Interface Programming

1998; Linguagem: Inglês

10.1007/978-1-4471-3380-3_19

ISSN

1431-1542

Autores

J.F. Hunt,

Resumo

In the last chapter you saw how to create a window and place a panel on it that allows you to draw graphic objects (lines, rectangles, etc.). However, today's graphical user interfaces (GUIs) go far beyond this, allowing buttons, input and output fields, selection lists, menus, etc. The Abstract Window Toolkit (AWT) provides many classes which directly support these types of facilities. As Java is a pure object oriented language, a button is an object, a menu is an object, a text field is an object and so is a selection list. Thus to create a GUI in Java, you create the window and instances of the facilities you require; then you add these instances to the window instance. You use the Frame and Panel classes, just as you did in the previous chapter, to display such GUI component objects.

Referência(s)
Altmetric
PlumX