JFrame.setUndecorated(true) on Mac/Linux

I’m running windows - can people confirm that simply setting Undecorated to true on a Frame/JFrame does what it says on the tin on a Mac and Linux environment?

If I create a JFrame of size 800x600 and set it to undecorated, do I simply get an 800x600 frame with no window decoration?
Or would I get a blank area where decoration ‘should’ be?

I can’t test this to see what it looks like.

I noticed a decorated 800x600 frame in windows is partially obscured by the window title bar.

Much appreciated.

yes, you should get a full 800x600 pixels size area without any decoration on all the platforms.

I don’t know about mac or linux, but for windows setUndecorated(boolean) only sets the ‘heavyweight’ decorations on and off.

If you want to gaurantee no decorations then maybe call JFrame.setDefaultLookAndFeelDecorated(false); since you can still have lightweight decorations regardless of whether or not you call setUndecorated(true).

Brilliant, thanks for the quick responses! I’m trying out some things for the 4K comp and I just wondered if this would be the same on all platforms.