CSE 115 Week 7 & 8 February 25 - 29, 2008

advertisement
CSE 115
Week 7 & 8
February 25 - 29, 2008
March 3 – 7, 2008
Announcements

Software Installation Fest – Take 2
– Tuesday 2/26 4-7
– Wednesday 2/27 4-7
– Baldy 21

CSE Mentors Lunchtime Chat
– Wednesday 3/5 at noon in Bell 224
– Panel discussion with upper-level CS/CEN
majors
Announcements




Lab 5 due week of 2/25
Lab 6 posted – due week of 3/17
Lab 7 posted 3/3 – due week of 3/24
Exam 5 (2/25), Exam 6 (3/3), Exam 7
(3/26), Exam 8 (3/31)
Announcements


Resign Deadline 3/28
Exam 4 grading correction (Pink only)
see Announcements page. Papers
must be handed back in by
Wednesday 2/24 to be eligible for
correction.
Week’s Notes


In these two weeks we worked on a
program in lecture in the
ShapesProgram project.
In this program, we see how to create
our programs as Applet/Applications
so that we don’t need to use DrJava to
run them anymore.
Week’s Notes



We also used the State Design Pattern
to create a button that starts and
stops the ball depending on which
action is supposed to happen next.
We saw the use of the JColorDialog
box to pick the color of the shape.
We increased the size of the shape
with each click of the “bigger” button
Week’s Notes

We added in a Proxy to the code so
that the program could eventually
support any of the three bouncing
shapes available.
Week’s Notes

As an exercise, modify this program to
have three new buttons, an “add
square”, “add triangle” and “add circle”
button to add each of those shapes.
The buttons on the right should
control the last created shape of any
of the three types.
Download