Bunnie.net Java Packages: Net.Bunnie.Applets

Class Name Class Description
Exeter This class was written on June 26th, 2003. It extends java.applet.Applet and implements the interface java.awt.event.ActionListener. It uses the following methods:
init() - initalizes variables and creates display
exeterButtonBunnie (int hereABunnie, String clickedOnlyOnce) - where int hereABunnie should equal int here or int there, and String clickedOnlyOnce should be the string that is displayed when the button is pressed for the first time. It counts how many times the buttons in the class are pushed and displays appropriate messages
exeterClearBunnie (String setMoreLabelText) - where String setMoreLabelText sets the text of the moreTextLabel Label when the button is cleared. It clears the count of how many buttons are pressed and is implemented when the clearCount button is pressed or the other two buttons are pressed more than 16 times
exeterBoolBunnie() - tells it to warn the user that the count will be cleared if either button is pressed one more time
actionPerformed (ActionEvent e) - tells applet how to respond when a button is pressed
paint( Graphics g ) - this method is empty.
GothTK This class extends java.applet.Applet and implements the interface java.awt.event.ActionListener. It uses the following methods:
init() - initalizes variables and creates display
actionPerformed (ActionEvent e) - tells applet how to respond when a button is pressed
paint( Graphics g ) - this method is empty.
Jump This class extends java.applet.Applet and implements the interface java.awt.event.ActionListener. It uses the following methods:
init() - initalizes variables and creates display
actionPerformed (ActionEvent e) - tells applet how to respond when a button is pressed
paint( Graphics g ) - draws the pictures in the applet and updates when a button is pressed
OutlawStarPictures This class extends java.applet.Applet and implements the interface java.awt.event.ActionListener. It uses the following methods:
init() - initalizes variables, loads pictures and creates display
actionPerformed (ActionEvent e) - tells applet how to respond when a button is pressed
paint( Graphics g ) - paints pictures to screen
Queen This class extends java.applet.Applet and implements the interface java.awt.event.ActionListener. It uses the following methods:
init() - initalizes variables and creates display
actionPerformed (ActionEvent e) - tells applet how to respond when a button is pressed
paint( Graphics g ) - draws the pictures in the applet and updates when a button is pressed
VirtualSodaMachine This class extends java.applet.Applet and implements the interface java.awt.event.ActionListener. It uses the following methods:
init() - initalizes variables and creates display
centsToDollars (int centsGiven, boolean totalMoneyText) - converts cents to dollars and formats the number accordingly
howMuchMoneyIsThereMommy() - sets the boolean in centsToDollars true to update the total money
putInMoneyBunnie (int howManyPennies, String howMuchMoney) - puts in money to the soda machine. Specifications are in pennies and a string with properly formatted dollars and cents, American style
getASoda (int howManyPenniesMore, String howMuchMoneyMore, String nameOfDrink, String youAreAStupidWhat) - tells how much to subtract from the total money if enough is there, outputs properly on screen, gives an error message if not enough money
actionPerformed (ActionEvent e) - tells applet how to respond when a button is pressed
paint( Graphics g ) - this method is empty.

Java