CS 101 Lecture 15 - User Interface Components and Events III

Summary notes on GUI Components

Class Examples:

  1. Let's add the menus and buttons into panels in our Drawing program so they fit better.

    Click on ComboBoxDrawing to show the example.

  2. This applet demonstrates the use of sliders to choose values.

    Click on ColorSlider to show the example.

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

    Click on ColorMixer to show the example.

  4. Here is another applet that uses TextFields for input and output.

    Click on Interesting to show the example.

  5. 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.