Fullscreen and Swing

Okay when someone goes about making a fullscreen game, it usually happens like this: wmake full screen mode, decide the display mode, then make a buffer strategy or something. But if you make the fullscreen mode then decide the display mode but then not add not buffer strategy and start threads for that can u use Swing components instead on the fullscreen?

Thanks

-Alex

[390 byte] By [javatypoa] at [2007-9-28 0:11:09]
# 1

Yes, it should work. By default, swing components use passive rendering (that is, the paint() method) to draw themselves on to the screen. You shouldn't have a problem if you have fullscreen mode without the buffer strategy, but with the strategy I think it becomes a little messy. In my game, I've got swing components working together with a VolatileImage on a Canvas and I've had no problems there.

Frumple

Frumplea at 2007-7-7 19:43:41 > top of Java-index,Other Topics,Java Game Development...
# 2
Hmm, okay thanx. So if I made the fullscreen window, I could paint to a JPanel or something right?
javatypoa at 2007-7-7 19:43:41 > top of Java-index,Other Topics,Java Game Development...
# 3
I am looking at working with this now and I'm finding that dialog boxes and other pop-up stuff tends to sink the application. Does anyone know any workarounds for this?
_Breakfast_a at 2007-7-7 19:43:41 > top of Java-index,Other Topics,Java Game Development...