JFrame Window Edges Are Round on Mac OS 11.0

179 Views Asked by At

I've been dabbling with JFrame and usually the window was a rectangle (with sharp edges). After updating to Mac OS 11.0 Big Sur, the JFrame window has round edges. I've looked for how to change the shape of the window, tried setUndecorated which basically just shows the content of the frame without the toolbar. I also tried setShape which to use it, I had to use setUndecorated as well, but it was the same result. It seems to me it's an OS thing, but is there a way to have my frames rectangular without having to use setUndecorated (since it does not retain the toolbar of the frame) or maybe I'm using it wrong and I'm missing something in my frame.

enter image description here

0

There are 0 best solutions below