JDesktopPane fullscreen GUI

Hello,

I am having trouble with JDesktopPane active rendered using BufferStrategy in fullscreen. I have two questions…

  1. How would I draw my game as the background of the JDesktopPane… The only way I can think of is to render the JDesktopPane to a BufferedImage and just render this last on top of the game.

  2. Dragging and dropping internal windows seem to make the internal window flash on the top left of the screen at location 0,0 while I’m dragging it… How can I stop this flashing?

Thanks,

I found a way to stop the flashing the JInternalFrame at the top left corner by using a DesktopManager and setting the JInternalFrame to not visible when moving/dragging…
It’s probably flashing still but since it’s invisible, you can’t see it …