sorry to post Noob question but i am really getting in a twist over this and i can't seem to find anything on any forums.
I have a very simple full screen app and i just want a convenient way of closing it, i have very little user input i a simple keyListener seems like the best option.
I am setting up full screen as follows:
(this has been extracted so that is readable context free)
frm = new JFrame();
GLCanvas des = GLDrawableFactory.getFactory().createGLCanvas(new GLCapabilities());
win = new Window(frm);
I have tried adding keylisteners to the frame, the window and the canvas, i have tried making various parts unfocusable and requesting focus on others. The only time I have managed to get it working was by adding a Frame/JFrame to the ScreenDevice.setFullScreenWindow(); and addling the listener to that. However this results in the menu bar being visible and I wanted that hidden.
Please tell me what I am doing wrong, i'm sure i'm nearly there and this is frustraiting.