1

I have a JFrame which already have undecorated and made the corners curve as in the image.

I want to apply a border for this JFrame. For that I have tried with following code.

getRootPane().setBorder( BorderFactory.createLineBorder(Color.GRAY) );

This Code applies the borders only for the edges without including the corners. So How can I apply the border for the corners also?

Ilham
  • 33
  • 1
  • 1
  • 6
  • 5
    Curved corners are a waste of screen acreage. What is the designer afraid of, that someone will cut themselves on the sharp corner? My advice is to use that effort on making the content of the frame stylish, logical and 'path of least surprise'. The end user will appreciate that more. Rounded corners are unnecessary futzing. – Andrew Thompson Jul 30 '17 at 11:48
  • see [Border with rounded corners & transparency](https://stackoverflow.com/questions/15025092/border-with-rounded-corners-transparency) – c0der Jul 30 '17 at 14:04

0 Answers0