Examples and other materials from lectures


Shape programs, from C to C++ to Java 
  1. Encapsulation
  2. shape1
  3. shape2
  4. shape3
  5. shape4
  6. shape5
  7. shape6 (other files are same as before)
  8. shape7
  9. shape8
  10. shape9
  11. Workshop: Java Setup
  12. shape10
Java GUI programs 
  1. Workshop: SimpleButton0
  2. Window Systems
  3. SimpleButton1
  4. SimpleButton2 (other file is same as before)
  5. Workshop: Modify SimpleButton2
  6. Scroll (other file is same as before)
  7. AWT class hierarchy
  8. Draw1 (the WRONG way)
  9. Draw2
  10. Java graphics commands
  11. More on Java graphics commands
  12. Workshop: Java Drawing
  13. Draw3 (other files are same as before)
  14. Workshop: Java Mouse and Drawing
  15. Draw4 (other files are same as before)
  16. Widgets
  17. Different kinds of widgets
  18. Layout1
  19. Layout2 (for reference; optional)
  20. (Movie frames)
  21. Timeout1
  22. Timeout2 (other files are same as before)
  23. Workshop: Simple Animation
  24. Workshop: Installing Eclipse and Windowbuilder
  25. SimpleButton2 using Eclipse IDE
  26. Widgets using Eclipse IDE
  27. Menus (using Eclipse)
Button Programs, GUI with OOP 
  1. ButtonApp1
  2. Three Hierarchies for ButtonApp3
  3. ButtonApp3 (no ButtonApp2)
  4. Hierarchies for ButtonApp4
  5. ButtonApp4 (other files are same as before)
  6. Design for ButtonApp5 Program
  7. ButtonApp5
  8. Workshop: Pan and Zoom