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.

rounded corners for JTextField

EdChouaffeMar 9 2011 — edited Mar 10 2011
Hello guys.

To render my application a little more attractive, I intend to make the JTextField instances have the visual modern application use nowadays.
If you have a look at apps such as Skype, Eclipse even some Web sites, you will notice that the text field have rounded corners which are not heavely pronounced though. It seems like there is a standard fashion to accomplish it, since it looks exactly the same if you look at one or the other app. I have tried to extract the border for JButton object to assign it later to the JTextField, but it doesn't work as the returned type of the JButton's border is EmptyBorder (the border by default).

Does anyone have an idea?

Thanks.

Edmond.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 7 2011
Added on Mar 9 2011
3 comments
456 views