FSEM and AA

Hi,

FSEM mode isn’t working for me, any reason why? I am using Windows XP SP2 and Java 6 RC. The snippet of code I use for activating it follows:


		if (!running && animator == null) {
			animator = new Thread(this);
			animator.start();
			if (device.isFullScreenSupported() && fullscreen) {
				device.setFullScreenWindow(this);
			} else {
				setResizable(false);
				setVisible(true);
			}
		}

All that appears for me is a regular maximized window with the borders and all.

The other question is: why is it antialiased? I have a GLCanvas in it, drawing some OpenGL stuff, and I didn’t do anything in my code for it. In windowed mode it seems not to do the antialiasing, but in this pseudo-fullscreen it is antialiased.

Hi,

For the decoration part you have to call

setUndecorated( true );

on your frame.

For the AA stuff I’m quite surprised, but may this question is more related to the jogl forum?

Check your driver settings, a large number of newer drivers set AA on by default, I think mine set 4xAA on as the default AA setting.

Endolf

wait a minute, isn’t FSEM supposed to be a “true fullscreen” mode? Opening maximized windows without borders isn’t FSEM. I have done it before in my old machine and it seemed to work there.

It’s a true fullscreen mode, but you are putting a Frame into the fullscreen mode. If you keep the frame’s decoration it will be present on the FSEM. Take a look to the java tutorial for more information on FSEM.