CS 55  Java Programming

Week 11

Agenda

  • Chapter 12 - Graphics and Java2D
  • practice test

References

The Java Tutorial - Working with Graphics
The Java Tutorial - 2D Graphics

Examples

Fonts2.java - Font class, frame location, Image class, frame icon
sup.gif - picture for Fonts2.java
MyFrame2.java - demonstrates some basic graphics techniques
Random.java - generate a random number from a given set (just for fun)

Test 3 Information

  • When: next week
  • Covers: Deitel chapters 8 - 12; OOP
  • Open book, open notes
  • It will be similar to the following practice test.  I.e., you will be given requirements and will need to design and implement the classes.
  • Practice Test   solution: Walkman.java  Walkman2.java

Lab11

  1. Exercise 12.30
    • classname: BarGraphApplet
    • I would suggest using class java.awt.Rectangle (not class Rectangle2D.Double as Deitel requires).
 < CS 55  > Home Email Last Modified November 9, 2004