This page contains an archived post to the Java Answers Forum made prior to February 25, 2002.
If you wish to participate in discussions, please visit the new
Artima Forums.
Message:
Drawing line
Posted by vijayv on December 26, 2001 at 2:04 AM
> Hello ! > I would like to know how to draw into an ellipse when using Java2D APIs. Indeed, when I try to draw within my ellipse, the line I have drawn is invisible. Why ? -- May be the line which you are drawing is of the same color of the fill color of the ellipse. Before drawing the line try changing the color . g.setColor(new Color(Color.black)) then try drawing it.
Replies:
|