I have a problem i have to solve, I’m drawing in fullscreen exclusive mode, i have 2 setups,
first one i had was that i used two frames, one is the one i draw on and the other is my swing frame. i used to switch between the two, which worked fine, but on certain computers it doesn’t work.
so i changed it to one frame, using a canvas to draw on when i needed i remove it and add a panel with the swing things.
problems with this is, 1. the swing frames seems to not paint certain components untill i move over it. but i do call a repaint and validate on the panel. secondly switching back to the canvas doesn’t draw anything. ANd thirdly, in java 1.6 N my framerate drops to 25fps and i see it’s doing exclusive software rendering, and sometimes i see a hardware rendered call. but JRockit 6 gets the full 60fps, full hardware rendering.
Does anyone have any idea how i can solve this? the code for the second one is http://pastebin.com/m779738fe