Ya... That's the case.... How should I draw it then???
Type: Posts; User: athrun8703
Ya... That's the case.... How should I draw it then???
At the constructor of SmoothBus.. There is a for loop which add BusRender array to the centre border layout.. Variable name is b[z].add(......);
The current BusRender class has the code to draw the route.. It is just that the line for the 1st route is not coming out... Even the bus image for the 1st BusRender object does not show out... The...
the timer is used to draw the buses.. what i am unsure now is where to put that iteration... as for the case of drawing one thing.. only that busRender class has the paint component.. the main class-...
1st sorry for the lengthy code..
the main class- SmoothBus:
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
should the paint component be in the main class or BusRender class(bus class)... my bus render class has a paint method already..
BusRender paintcomponent:
public void...
Ya... The program only print the last route and the relevant bus for that loop.. What u mean by drawing the bus in a loop... My current code has a paint method for each bus object... Meaning to say...
please ignore my post above... i made some progress... the issue now is the program only draw the last set of the route.. with respect to my attached image above, it would only draw the blue route.....
hi.. i read the code but i still don't get what it mean.... also now i encounter another error.. the above code is to be created into a bus object and the main class will create this bus object and...
Sorry I am new in this.... Do u have any reference I could refer to????
http://img163.imageshack.us/img163/6751/mtimers.png
Uploaded with ImageShack.us
hi.. from my uploaded images there are buses on 2 route, namely the blue route and the red route.. my task is...