• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

drawing a good circle!

 
Chris Dancy
Ranch Hand
Posts: 136
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
So yes drawing a circle is a rather painless problem. However, when I draw my circle there is still a bit of aliasing going on and it irritates me and does not look good. Here is my code, its the paintComponent method followed by the paintBorder method...


and paintBorder...



you may notice that im using drawRoundRect instead of drawOval, you get the same effect either way, I simply have it this way because at one point I had rectangle buttons and then I decided upon circular buttons. So if anyone has any ideas on how to get a better drawn circle I would love to hear it.
 
Suraj Chandran
Ranch Hand
Posts: 53
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic