For some time now I was trying to make a JFrame
with rounded borders however I was not able to.
I know the setShape(java.awt.Shape)
method of a JFrame
can be used to create JFrame
with specific shape but I guess it is limited to the following:
Rectangle2D
(sharp-edged) Ellipse2D
CubicCurve2D
QuadCurve2D
GeneralPath
What I want to do is to create a JFrame
with rounded corners.
How is that possible ?
Note: My Eclipse IDE shows the setShape() method however the Java Doc online does not. Uhm... why ?