Look at the gray circles along the lines, they need to be placed equally to represent the hours, here is my code for that, where did I go wrong?
for (int i=0; i<12; i++)
{
c.drawCircle(140*(float)Math.cos((double) (i*30))+ width/2,
140*(float) Math.sin((double) (i*30)) + height/2, 1, p);
}

The angle must be provided to Math.cos in radians (between
0and2*Math.PI).So, instead of
Use
Note that I also removed the useless cast to double : multiplying an int and a double already produces a double.