What did I learn about Java by doing this project?
-
I learned how to create an object, ballObject,
that my program was able to use to create 3 different instances (red, green
and blue) that not only started in different locations, but also had different
angles of movement and speed. I did this by passing information from
myCanvas to the ballObject.
-
I was able to create buttons and place them on a panel.
-
I learned when it is important to define a new string, integer, image,
etc within a method or for the entire class.
-
I learned how to use the Sun documentation to figure out what someone elses
code is actually doing. Once I understood the code I was often able
to use parts of it to suppliment my own, or get ideas for ways to do things.
It felt like I learned a lot more then this. I think I should get
a passing grade because I worked really hard and I learned a lot.
I did fail to get the stop and go buttons to work, though I'm not sure
why it did not work. Through my failed efforts to create a sliding puzzle,
I learned how to use a constructor to pass information from one object,
Knot.java, to the other object,
oneCanvas.java to form a whole
picture made out of
9 individual images.