Currently, my game renders to a JPanel in a window, by drawing to a bufferedimage and drawing that image to the panel.
It works fine in windowed mode, but flickers in fullscreen. HELP ME. I’m really sick of java recently because I spend more time implementing low level stuff such as sound than I do working on gameplay.
I’ve tried setIgnoreRepaint(true) with every combination. Either it still flickers, or it doesn’t paint anything.
The JPanel doesn’t even center correctly in fullscreen mode. And why can’t you create a BufferStrat from a JPanel???
WHY CAN’T ANYTHING IN JAVA WORK WITHOUT WORKAROUNDS.
Am I wrong to expect this?
The fullscreen rendering is the most pressing of my problems. Hope you can help.
You might try Slick.