GetDotted Domains

Viewing Thread:
"More java shenanigans"

The "Freeola Customer Forum" forum, which includes Retro Game Reviews, has been archived and is now read-only. You cannot post here or create a new thread or review on this forum.

Sat 26/04/03 at 18:18
Regular
Posts: 787
Im trying to draw a scale like the ones you see on maps.

|___|___|___|___|
0     10     20     30    40

I have to do it using some sort of loop. Any ideas?
Wed 30/04/03 at 16:34
Regular
"+34 Intellect"
Posts: 21,334
I keep getting this error;

C:\Documents and Settings\Default\My Documents\Calum's stuff\assignment2\CycleTour.java:17: CycleTour should be declared abstract; it does not define mouseClicked(java.awt.event.MouseEvent) in CycleTour
public class CycleTour extends Applet implements ActionListener, MouseListener{

Any idea what its talking about?
Sun 27/04/03 at 03:05
Regular
"+34 Intellect"
Posts: 21,334
Done the greenstuff. It was easy after i had a decent look at the code. Got the scale done as well. Except for the numbers.
Sun 27/04/03 at 01:32
Regular
"Picking a winner!"
Posts: 8,502
Couldn't sleep

Something a long the lines of

g.drawline(0,0,50,0); //the horizontal line from point (0,0) to (50,0)
int x=0;
int y1=2;
int y2=0;
for(int i=0; i<10;i++)
{
g.drawline(x,y1,x,y2);
x=x+5;
}

As far as my sleepy head can see that should draw the scale from 0 to 50 at intervals of 5

Any problems you know you can get me on MSN at some point.
I'll think about the green stuff too.
Sun 27/04/03 at 00:14
Regular
"bing bang bong"
Posts: 3,040
Use a for loop to draw the scale, then another for loop to write the numbers.
Sat 26/04/03 at 19:06
Regular
"+34 Intellect"
Posts: 21,334
java.
Sat 26/04/03 at 18:49
Regular
""
Posts: 303
java or javascript?
Sat 26/04/03 at 18:18
Regular
"+34 Intellect"
Posts: 21,334
Im trying to draw a scale like the ones you see on maps.

|___|___|___|___|
0     10     20     30    40

I have to do it using some sort of loop. Any ideas?

Freeola & GetDotted are rated 5 Stars

Check out some of our customer reviews below:

First Class!
I feel that your service on this occasion was absolutely first class - a model of excellence. After this, I hope to stay with Freeola for a long time!
Second to none...
So far the services you provide are second to none. Keep up the good work.
Andy

View More Reviews

Need some help? Give us a call on 01376 55 60 60

Go to Support Centre
Feedback Close Feedback

It appears you are using an old browser, as such, some parts of the Freeola and Getdotted site will not work as intended. Using the latest version of your browser, or another browser such as Google Chrome, Mozilla Firefox, or Opera will provide a better, safer browsing experience for you.