|
Bunnie.net Java Packages: Net.Bunnie.UVA.CS101 | |
| Class Name | Class Description |
|
Blackjack HW J4 | This class was written on June 30th, 2006. It uses the following methods: |
|
main (String[] args) - Play a modified version of Blackjack. int drawCard(Vector | |
|
ProblemSolver HW J3 | This class was written on June 30th, 2006. It uses the following methods: |
|
printResult(int result) - Prints one of an array of messages (pass index)
and exits program main (String[] args) - Tells you the usefulness of your geek gift based on a series of yes/no answers, from this flowchart. | |
|
ProblemSolverGUI,
JCloseListener (screenshot) (zip) | This class was written on July 14th, 2006. It extends JFrame and implements MouseListener. JCloseListener extends WindowAdapter. It uses the following methods: |
|
ProblemSolverGUI() - The GUI. This is the graphical version of
ProblemSolver. It hovers the yes/no options when on a question graphic,
hovers the next question/result before clicked, and then when a result
is reached allows the user to start again. Deals with wraparound image.
Images are spliced and in a separate directory below this one. setAllBlank(boolean firstTime) - set all images to the blank form and load the initial set up (start and first question) needMI (boolean[][] needsMouseListener) - set the array of booleans for which images need Mouse Listeners getDefaultIcon(MouseEvent e) - Regex to determine which image triggered the MouseEvent whichPic(int[] hV) - determine which set of images the trigger image belongs to (ie, images are spliced and 4 might make up a question) enterExit(MouseEvent e, String picStatus) - mouseEvent handling method; makes pictures hover, blank, selected, etc. mouseEntered(MouseEvent e) - call enterExit() when mouse enters image mouseExited(MouseEvent e) - call enterExit() when mouse exits image mousePressed(MouseEvent e) - call enterExit() when image is clicked mouseReleased(MouseEvent e) - this method is empty. mouseClicked(MouseEvent e) - this method is empty. main (String[] args) - set size and open window windowClosing (WindowEvent ev) - closes the window | |
|
Triathlon HW J1 | This class was written on June 30th, 2006. It uses the following methods: |
|
main (String[] args) - Projects your time for an Ironman Triathlon
based on times from an Olympic Triathlon. Originally I programmed this the way
a newbie CS 101 first homework assignment goer would, and then I rewrote it
underneath in a much more aesthetically pleasing way. Hehe. I am a dork. | |
|
VectorUsage HW J2 | This class was written on June 30th, 2006. It uses the following methods: |
|
printVector(Vector v) - Prints out the number of elements in the vector
as well as the current vector main (String[] args) - Asks you to list five movies, stores them in a vector, and then plays around with the vector based on more user input. Also, MINE doesn't get errors like everyone else's because I used the amazing GENERICS wooooo. (Again, I am a dork) | |
| External Classes | |
| Card | Card was proly written by some poor TA for UVA's CS 101. It has been modified to be part of the net.bunnie.uva.cs101 package for convienence. |
| YesNoExtractor | YesNoExtractor was written, well, proly by a TA for the CS 101 course at UVA. It has been modified to be part of the net.bunnie.uva.cs101 package for convienence. |