How to remove “stretch marks” on custom button border?

后端 未结 2 1698
遇见更好的自我
遇见更好的自我 2021-01-14 13:27

When performing some custom painting on a button\'s Graphics2D object, I get the following results:

2条回答
  •  挽巷
    挽巷 (楼主)
    2021-01-14 13:52

    Why are you drawing so many rounded rectangles around the button? As far as I can see, the correct way to do this would be to use setStroke() API while drawing the kind of border you like.

提交回复
热议问题