John Amiereie

Greenhorn
+ Follow
since Apr 27, 2005
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by John Amiereie

Oh well, exam is finished, but thank the first person that replied; I owe them; if I wasn't polite , but thank you .
PEACE
[ April 27, 2005: Message edited by: Mark Spritzler ]
14 years ago
thank you and i will try to do something with it, but i REALLY NEED THE CODES< PLEASE HELP OUT THERE < PLEEEEEEAAAAAASEEEEEEEEEE

COME ON GUYS, I KNOW I WILL HELP SOMEONE IF THEY WANTED IT URGENTLEY.
[ April 27, 2005: Message edited by: John Amiereie ]
14 years ago
very funny,
[ April 27, 2005: Message edited by: Mark Spritzler ]
14 years ago
hi there, i know this is cheecky and probably wrong but i really need help, i am in an assinment now and i have 30 minutes to do it in and i don't have a clue, here is the codes, all we have tyo do is fill out the codes, so can someone please help me:
import java.applet.Applet;
import java.awt.*;
import java.awt.event.*;

public class PlayFrame extends Applet implements AdjustmentListener {

private Scrollbar thick;
private Frame picture;
private int thickNum;

public void init() {
thick = new Scrollbar (Scrollbar.HORIZONTAL, 5, 1, 1, 41);
add (thick);
thick.addAdjustmentListener(this);
picture = new Frame (50, 35, 160, 240, 5);
}

public void adjustmentValueChanged(AdjustmentEvent event) {
thickNum = thick.getValue();
picture.setThickness(thickNum);
repaint();
}

public void paint (Graphics g) {
g.drawString("Cost of frame is "+(float)picture.totalArea()/400.0f, 20, 20);
picture.display(g);
}

}


class Frame{

// INSERT CODE HERE

public Frame (int initialX, int initialY, int initialBase, int initialHeight, int initialThickness) {
// INSERT CODE HERE
}

public void setThickness (int thicknessIn) {
// INSERT CODE HERE
}

public int totalArea(){
int area=0;
// INSERT CODE HERE
return area;
}

public void display (Graphics g) {
INSERT CODE
}
}

thank you
14 years ago