User Profile
Collapse
-
thank you for providing me with the link -
Animating an image in an Applet
Hi ive decided to make an applet where i would like my favorite player ed reed to run accross the screen with the ball in his hand, and i was wondering how i can animate him to do that..ive used the repaint function with a try sleep before so thats all i really am not sure how to do.. what would be a base code for this? im sure its hard if sice you dont have the file, but mabye you can give me a little back round
thanks
... -
thanks, i figured it all out for the most part, and im just trying to get the sort to workLeave a comment:
-
Getting "Null"on print out
hey, im doing this program and im reading the information from a file, i cant figure out how to get the print out right. Ive looked at all my for loops and i thought the error would be in the "substrings " that im doing..mabye the errror is in lines 25-39? this might be alost cause cause you cant run this file without the data file, but the scores and averages work, but the the peoples names dont print out right
it says... -
Sorting an Array and one other thing
hey im writing a program where i had a question about sorting an array..in my program i have to sort 3 arrays..does this mean i have to do the sort 3 different time and have 3 "dummy" arrays that will hold the values? i plan on using a interchange sort
My second question is that i need to Call a function that will return the most frequently occurring exam (scores from a [5][8] array) would i use an if statement to do this?... -
Animation problems
im doing an applet and this is what i have so far
[CODE=Java]import java.awt.*;
import java.awt.event. *;
import java.applet.*;
import javax.swing.*;
public class Applet1 extends JApplet
{
Thread t = new Thread();;
int p1;
int p2;
int a=0;
int b=50;
int c=125;
int d=115;
int e=50;
int f=300;
int j=300;
int h=325;
... -
yea i know im sorry...i was just showing you my loop with the stars goin accros the sky..i didnt use math.random beacuse i dont know how to use it..thus me asking the questionLeave a comment:
-
Math.random help! please
hey im new to java and im trying to get stars to appear randomly accross the sky and i cant fugure out how to use the functions
for (a=1;a<1000;a=a +10)
{
g.fillOval(0+a, 2,6,6);
}
thats what i have now and the stars go stright accross teh sky..if nothing else then i would just line the stars up in teh sky but no matter how big i make my for loop, the starts just go one line stright accross the...
No activity results to display
Show More
Leave a comment: