Fullscreen Window KeyListener

Hi, sorry for posting this here if it was answered somewhere else, but I couldn’t exactly find what I was looking for.

I am trying to design a fullscreen game by making a window, putting it in fullscreen, drawing to a BufferedImage, and then drawing that ontop of the window. This works fine, but I cannot get any keyboard input from the window while it is in fullscreen. Is there a way to fix this, or a better way of doing this altogether? Any help would be appreciated. Thanks in advance.

You want to make a Frame or JFrame then do:

frameClass.addKeyListener( )

and dont forget to do this:

frameClass.requestFocus()

You probably also want to use BufferStrategy
So you draw to a BufferStrategy and then it handles the draw to the screen.
Search the forums here for more info on it.

Will do, thanks for the info.