Forums Register Login

drawing circle with label inside

+Pie Number of slices to send: Send
i want to draw filled circle with label inside it for example "A" inside the circle. Anyone can help me?
+Pie Number of slices to send: Send
Welcome to the Ranch.

What have you got so far, and where are you stuck?
Usually, one would
1) Override the paintComponent method
2) Use the reference to Graphics g and invoke the required method on the "g" instance. e.g. http://faq.javaranch.com/java/BackgroundImageOnJPanel
+Pie Number of slices to send: Send
You forgot step 1a) call super.paintComponent(g).
On top of spaghetti all covered in cheese, there was this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 2659 times.
Similar Threads
Applet Draw shape
Creating your own class
Can anyone tell me how to draw something(example: circle,lines ) on an image ?
how to draw shapes with mouse?
Draw a Shape by selecting(combox) its color and clicking a button
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 12:11:17.