CS 101 Lecture 12 - User Interface Components and Events III

Summary notes on GUI Components

Class Examples:

  1. This program demonstrates the use of sliders to choose values.

    Click on ColorSlider to show the example.

  2. This modification of the above example uses TextFields for selecting values for red, green, and blue.

    Click on ColorMixer to show the example.

  3. Here is a JApplet that uses TextFields for input and output (without objectdraw).

    Click on Interesting to show the example.

  4. This program demonstrates how to pick up keystrokes in a program. Output will appear in the console window.

    Click on KeyDemo to show the example.

  5. Another example how to pick up keystrokes, which appear on the canvas.

    Click on KeyDemo2 to show the example.