Navigation
Courses
COSC 222 -- Java Programming
SyllabusGrades
Announcements
Schedule for remainder of the year:
- Nov 19: JSP/beans
- Nov 21: JSP/beans
- Nov 24: AJAX/JSF
- Dec 1: AJAX/JSF
- Dec 3: course evaluations
- Dec 5: exam review
MS Paint style program is due on Sunday November 2, 2008 by midnight.
Test 2 is on Wednesday October 1, 2008
Class Notes
In Class Examples
PersonEmployee
Hourly Employee
Commission Employee
Base Salary Employee
Payable Interface
Inheritance/Polymorphism test class
Threaded Ball class
Ball Frame class
Ball application
Books Database
Database Program
Assignments
For the next assignment I want a web-based application that
allows a user to type in a query and returns the results in a
nice readable format to the user. Use the books database like from
the last assignment.
Requirements:
- You must use servlets
- Your web interface must be easy to use
- servlet code (.java)
- your start page (.html)
- your application descriptor (web.xml)
Create a simple, GUI-based query application for the books database. Your application should allow the user to type in a query (a text entry box) and show the results in a table format (ResultSetTableModel class from book).
Due by midnight on November 14, 2008.Write a simple "MS Paint" type program that allows a user to create simple drawings on a canvas (JPanel). Check out page 575 for an example of the way to create drawings in this way. Your program needs to allow the user to choose multiple colors and change the size of the "brush" stroke. Also include a mechanism for clearing the window to start over. Due Sunday November 2, 2008.
Sketch ClassPaint Panel Class
Test Class
Implement the Card and DeckOfCards classes from Chapter 7; then do exercises 7.30 and 7.31 on page 360. Send me your Card, DeckOfCards, and Application classes through email by 5:00 pm on Friday October 3, 2008.