COMP1406/1006 Course Notes
* note that many of the images used in these notes were obtained from
www.arttoday.com
(a great source of clipart images).
1
User Interfaces
1.1 User Interface Terminology
1.2 A Simple Text-Based User Interface
2
Applications and Layout Managers
2.1 Creating a Basic GUI Application
2.2 Components and Containers
2.3 Layout Managers
2.3.1 NullLayout
2.3.2 FlowLayout
2.3.3 BorderLayout
2.3.4 CardLayout
2.3.5 GridLayout
2.3.6 GridBagLayout
2.3.7 BoxLayout
3
Events & Listeners
3.1 Events and Event Handlers
3.2 Listeners and Adapter Classes
3.3 Handling ActionEvents with ActionListeners
3.4 Handling MouseEvents with MouseListeners
3.5 Key Press Events
3.6 Proper Coding Style for Component Interaction
4
A TrafficLight Application
4.1 Application Description
4.2 Developing the Model
4.3 Designing the User Interface Layout
4.4 Connecting it all Together
4.5 Hooking up the Timer
4.6 Splitting up the Model, View and Controller
5
Recursion
5.1 What is Recursion ?
5.2 The Well-known Factorial Example
5.3 Destructive vs. Non-Destructive Recursion
5.4 Direct Vs. Indirect Recursion
5.5 Some Other Examples
5.6 Practice Questions
5.7 Efficiency With Recursion
6
Menus and Dialogs
6.1 Using Menus
6.2 Standard Dialog Boxes
6.3 Creating Your Own Dialog Boxes
6.4 E-mail Buddy Dialog Box Example
7
More Collections: Sets and HashMaps
7.1 Collections Re-Visited
7.2 The Set Classes
7.3 The Map Interface and Its Classes
7.4 HashMaps
7.5 The MovieStore Example
8
Graphics
8.1 Doing Simple Graphics
8.2 Repainting Components
8.3 Displaying Images
8.4 Creating a Simple Graph Editor
8.5 Adding Features to the Graph Editor
9
Networking
9.1 Networking Basics
9.2 URLs
9.3 Client/Server Communications
9.4 Client/Server Example
9.5 Datagram Sockets
9.6 Auction Example
10
Animation
10.1 Animation Concepts
10.2 Simple Animation and Threads
10.3 Kinetic Animation