Dear all,
I have a JPanel (call it X) in the middle of another JPanel (call it Y). I want X to have a rounded border. I can do this with a
LineBorder
, but you can hardly see it has round corners. I would like a border with rounded corners where you can specify the amount of pixels the corners uses. That way, I can create some nice round corners.
Does anyone have an idea how to do that? It's so ugly having straight corners :)
Thanks in advance!