Object-Oriented Programming with Java Lecture Notes

22 April 2008 • Swing Components


Outline

Wither the AWT?

Swing

Swing Parts

Text I-O

Text Labels

Reactive Text Labels

Text Fields

Text Areas

Scroll Bars

Scrolling

Component Parts

Interactions

Model View Controller

Text-Field MVC Example

MVC Interactions

MVC Advantages

MVC Disadvantages

Choice

Check Boxes

Radio Buttons

Combo Box

Install the Java plug-in to see this applet. See the code.

Sliders

Using Swing Components

Swing-Application Interaction

Component Query Methods

Using Query Methods

Component Notification

Actions

Action-Listener Behavior

State-Picking Case Study

Slider Picking

Slider-Label Coupling

Recursion!


This page last modified on 10 April 2008.

Creative
    Commons License