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?