Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Border on an rounded JTextField?

 
Andreas Bystrom
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I've found this example of how to make a JTextField rounded in the corners and now I wonder if someone could help me to add an border that is also rounded?
The code for the rounded textfield looks like this:

How is it possible to do a border on this JTextField that is rounded as well?
Thanks in advance!
// Andreas
 
Nathan Pruett
Bartender
Posts: 4121
IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Here's how you would do it...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic