User Tools

Site Tools


project:week14

More GUI

Lecture 1

Problem: How can Java be used to draw arbitrary shapes?

  • Using Graphics drawing
    • Drawing a line
    • Drawing a rectangle
    • Drawing a circle
  • The Color class

Examples

Lecture 2

Problem: What are other useful classes to use when making GUIs?

  • Menus
    • JMenu
    • JMenuItem
    • JMenuBar
  • JDialog
    • Modal dialogs
    • Nonmodal dialogs
  • JScrollPane
  • Icons

Note: The previous lecture about drawing opens the door for threaded animation. Animation may supercede some of the other topics in this lecture.

Examples

Lab

project/week14.txt · Last modified: 2010/05/11 14:49 by jtk