How to draw a filled circle in Java?

Posted by Roman on Stack Overflow See other posts from Stack Overflow or by Roman
Published on 2010-03-24T16:42:05Z Indexed on 2010/03/24 16:53 UTC
Read the original article Hit count: 165

Filed under:
|
|
|
|

I have a JPanel with a Grid Layout. In the "cells" of the grid I can put different elements (for example JButtons). There is no problems with that. But now I want to put a filled circle in some of the cells. I also would like to relate an ActionListener with these circles. In more details, if I click the circle it disappears from the current cell and appears in another one. How can I do it in Java? I am using Swing.

© Stack Overflow or respective owner

Related posts about java

Related posts about swing