Programming II
CSC153 – Spring 2010

Syllabus (pdf)

Submit your assignment (disabled as of 05.24.10)

Programming help by teaching assistant Bryan Scionti: M 12-2 in JE139a, and R 9-11 in JE130.

Course Schedule

Week of

Course Topic

5.18

Final Exam scheduled for 12:45-2:45 in JE139A
Download Exam topics (pdf), and programming review problems (pdf)
Last day to turn in any assignment is 05.23.

5.11

Timers and animation examples from 05.04
Discussion of final exam

5.04

Mouse event handling
Java Graphics: creating a custom panel and using the Graphics class
Download code examples code050410.zip from Google group
Final project (pdf)

4.27

Event handler as an anonymous inner class
Swing controls: checkboxes, radio buttons, and combo boxes.
Mouse events handling and MouseAdapter
Download code examples code042910.zip from Google group
In-class lab 9 (txt)

4.20

Layout management: FlowLayout, BorderLayout, and GridLayout
KeyEvent handling, nested panels, using fonts, JPanel properties
Creating a menu: JMenuBar, JMenu, JMenuItem, JCheckBoxMenuItem, JRadioButtonMenuItem
Download code examples
Code042010.zip from Google group
In-class lab 8 (txt): Exercising Swing

4.13

Introduction to event-driven programming: event sources and handlers
Code examples (zip)
Project 3: due on 04.27 (download pdf and source file)
Quiz on exception handling, abstract classes and interfaces on 04.15
In-class lab 7 (txt): event-driven programming

4.06

Abstract classes and interfaces
The Comparable interface, a generic sort method
Object serialization
Download code examples and in-class exercise set 7 (zip): due on
04.13

03.30

Exception handling (Chapter 18)
In-class exercise set 6 (txt): polymorphism and exception handling

03.23

Spring Recess

03.16

Polymorphism (Ch. 10)
Midterm exam on 03.18: includes multiple choice questions and an in-class programming problem. Covers Ch. 7-10.

03.09

Inheritance concepts (Chapter 10)
Constructor chaining
The super keyword
Method overriding
In-class exercise set 5 (txt)

03.02

Object-oriented thinking (Chapter 9)

02.23

File I/O: java.io.File, Scanner and PrintWriter (Chapter 8)
Retrieving a file's attributes using the File class (e.g. size, last modified date, etc)
File I/O as operations on a stream of data
In-class exercise 4 (txt)
Project 2 (pdf) due on 03.11. Download BaseBoard.java

02.16

Mutable strings: StringBuilder
The class Character
In-class exercise 3 (txt)
Snow day 02.16 (university closed)

02.09

Arrays of objects
The String class (Chapter 8)
See code example Strings.java in the Google group.
In-class exercise 2 (txt)
Project 1 (pdf): due on 02.23 at 11:59pm.
Chapter 7
quiz on 02.16

02.02

Class and object concepts (Chapter 7)
In-class exercise 1 (txt)

01.26

Course introduction
Review of Java (exercises)