Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

JPanel border with rounded corners

843805Apr 30 2007 — edited May 1 2007
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!
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 29 2007
Added on Apr 30 2007
3 comments
14,062 views