I’m trying to make my fullscreen only engine run in a window, but I’ve run into some wierd problem.
If I don’t call setFullScreenWindow with my frame I get a null pointer when asking the BufferStrategy for it’s Graphics object.
If I don’t call setDisplayMode I get black background for the desktop but the engine runs in a window. I had this working in another project way back, but I can’t remember what I did there. Something with regards to creating the JFrame. The fullscreen code apparently creates it own window of sorts.