1 / 13

CSE 113 A

CSE 113 A. January 26 – 30, 2009. Announcements. 1/30: Last day to turn in signed form from syllabus & Exam 1 review sheet available 2/4: Go over review sheet for Exam 1 2/6: Exam 1 & Lab 1 due 2/9: Go over Exam 1 2/11: Makeup exam for Exam 1. Syntax: Calling methods.

elem
Download Presentation

CSE 113 A

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. CSE 113 A January 26 – 30, 2009

  2. Announcements • 1/30: Last day to turn in signed form from syllabus & Exam 1 review sheet available • 2/4: Go over review sheet for Exam 1 • 2/6: Exam 1 & Lab 1 due • 2/9: Go over Exam 1 • 2/11: Makeup exam for Exam 1

  3. Syntax: Calling methods • objectReference.methodName();

  4. Change Color of Turtle • setColor(java.awt.Color)

  5. Pre-defined Colors • RED • ORANGE • YELLOW • GREEN • BLUE • CYAN • MAGENTA • BLACK • WHITE • GREY

  6. Color Syntax • java.awt.Color.RED

  7. Color Syntax • java.awt.Color.RED • RED – an object that represents the color RED. RED is a pre-defined constant of the class Color.

  8. Color Syntax • java.awt.Color.RED • Colorclass can be used to create (any) color. You can use the pre-defined color constants or create your own color by specifying red, green, and blue values in the range of 0-255. (More on this later.)

  9. Color Syntax • java.awt.Color.RED • The Color class lives in a package named awt. • A package is a way to group like code together.

  10. Color Syntax • java.awt.Color.RED • awt package is a package inside another package named java.

More Related