5.2 Using GUI Components


A few examples will show what basic GUI components can be used. Although this section is mostly about creating basic GUI components we shall sometimes complete the example applets with event and action handling methods so that they are not only showing the components only but also have some effect. Sometimes we shall also choose special layouts for "pretty display" reasons although this is actually the topic of the next section.

  1. Creating a GUI Component: The Label Class
  2. The Button Class
  3. The Canvas Class
  4. The Scrollbar Class
  5. The TextField and TextArea Class
  6. Other GUI Components