Border with rounded corners & transparency
N.B. There is a clipping bug in this code, which is fixed in the accepted answer to paintComponent() is drawing on other components. This should only be considered as a solution if the ‘clipping bug fix’ is incorporated. // Paint the BG color of the parent, everywhere outside the clip // of the text bubble. … Read more