I need to draw a rectangle with the top-left and bottom-left corners, and another rectangle with the top-right and bottom-right corners, rounded.
I know you can draw a rounded rectangle using Graphics2D#drawRoundRect
, but that rounds all four corners.
Asked
Active
Viewed 2,040 times
0

MCMastery
- 3,099
- 2
- 20
- 43
1 Answers
1
I think this question haves an answer here https://stackoverflow.com/a/20321954/4443053
Basically, you need to define your own shape
. I-m pretty sure you can modify that example to your needed corners.

Community
- 1
- 1

Leonel Atencio
- 474
- 3
- 14