round « Border « Java Swing Q&A





1. How to create a rounded title border in Java Swing    stackoverflow.com

I do understand that to create a title border, you do something like:

BorderFactory.createTitledBorder("  Your Title  ");
However this creates a rectangle border whereas I need a rectangle with curved corners. ...

2. Rounded Border on one side only java    stackoverflow.com

I need to create a rounded border on one side of a component only. This code creates a rounded border:

  new LineBorder(Color.RED, 3, true)
I have seen this thread which shows ...