Turning off Frame decoration for a windowed mode

So that’s the question - what is the way to access the Frame underlying a windowed JME application and turn its decoration off? Looks like a simple question but I haven’t found an answer on the forums…

No, its a native window and these things are not exposed. You can place a Canvas on an AWT borderless window though.

1 Like

You could try the VM parameter [java]-Dorg.lwjgl.opengl.Window.undecorated=true[/java]
[java]System.setProperty(“org.lwjgl.opengl.Window.undecorated”,“true”); // before creating window.[/java]

If however you are using an AWT backed window then the above will not work.


Wow cool! Even two options are out there! I think I will need the custom canvasing (as shown here) on some further steps where I’ll do more complex things and possibly attempt several canvases, but currently setting the system property works ok!