How to make a round Progress Bar in codename one?

Viewed 541

I want to create a round progress bar, depicting the current status in percent in its mid. like this:

round prog bar

now I already followed the instructions on creating a flat progress bar, but as I am not familiar with swing and I don't have any clue of Javas graphics, I have no clue how to transfer from the 'flat' to the 'round' progress bar.

How could a code similiar to the progress bar look like?

ps: I saw Hannahs post on the analog clock and tried it like this - but failed due to my lack in painting (and maybe mathematical) skills.

pps: I don't use the GUIBuilder at all (bare bones)

ppps: I want it to be drawn (if possible), not image-based

1 Answers
Related