How to lock the screen resolution?

I want to lock the jmonkey screen resolution at 800 x 600,

what code should I add into?

I mean you cannot change the screen resolution at runtime

thank you for help

problem is solved

window.setResizable(false);