您的位置:寻梦网首页编程乐园Java天地Core JavaJava Lecture Notes

previous.gif
 (3087 bytes) next.gif
 (2959 bytes)


Content Index Content Page # 8

Basic AWT classes

Objects of these classes have a familiar appearance on the screen. They are have the property that it is unusual to display another object inside them (in fact, in Java it is impossible to put an object inside one of these basic objects). All these objects (except Label) can respond to mouse clicks and keypresses by sending events to their listeners. This technique is described in more detail below.

The exact appearance of these objects depends to a large extent on the computer system you are using, but they should all work in the same way. The pictures shown below were taken from a Java program running on a Windows NT system. The appearance on other system will be slightly different, as illustrated below.

Button

Objects of class button respond to mouse clicks.

Back to top

basicline.gif (170 bytes)