The Artima Developer Community
Sponsored Link

Java Answers Forum
I am in deep, ..........you knw

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Mo

Posts: 1
Nickname: fearfull23
Registered: Dec, 2003

I am in deep, ..........you knw Posted: Dec 7, 2003 3:01 AM
Reply to this message Reply
Advertisement
I have this coursework to do and man I wished lpaid attention but this brogramme consists of classes where i have to create a fish with 2 text boxes and four buttons, three of those are to change the colour of the fish the last enables the fish to swim, the text boxes determine the postion it starts on the form here is what I done so far, if some one could help me outthere it would be most appricitaed

mport java.applet.*;
import java.awt.*;
import java.awt.event.*;


public class PlayFish extends Applet implements ActionListener {

public void init() {

}

public void paint(Graphics g) {
}

public void actionPerformed(ActionEvent event) {
}

} // end PlayFish


class Fish {

public Fish (int setX, int setY) {
}

public void display(Graphics g) {
}

public void setPos(int xPos, int yPos) {
}

} // end Fish


class ColouredFish extends Fish {

public ColouredFish (Color newColor, int setX, int setY) {
super(setX, setY);
}

public void setColor(Color newColor) {
}

public void display(Graphics g) {
}

public void erase(Graphics g) {
}

} // end ColouredFish


class SwimFish extends ColouredFish {

public SwimFish (Color newColor, int setX, int setY) {
super(newColor, setX, setY);
}

public void swim(Graphics g) {
}

} // end SwimFish

Topic: Please Help Previous Topic   Next Topic Topic: Connection reset by peer

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use