Search code examples
javadrawing

how to use drawArc()


i want to draw this arc in a panel that the preferedSize is set to (200,50):

enter image description here

i found it hard to understand what does the parameters in drawArc(). how to draw this one?


Solution

  • To understand the arguements read the javadoc: http://docs.oracle.com/javase/7/docs/api/java/awt/Graphics.html#drawArc(int,%20int,%20int,%20int,%20int,%20int)