public void apply(JFrame f, int mode) {
private void apply(JFrame f, int mode) {
    public void apply(JFrame f, int mode) {        switch (mode) {	    case FULL_SCREEN:            goFullScreen(f, displayMode);            break;        case WINDOWED_MODE:            break;        default:            throw new IllegalArgumentException(String.valueOf(mode));        }        f.addWindowListener(new WindowAdapter() {                public void windowIconified(WindowEvent e) {                    isMinimised = true;                }                public void windowDeiconified(WindowEvent e) {                    isMinimised = false;                }            });	currentMode = mode;	BufferStrategy bs = frame.getBufferStrategy();	System.out.println("Buffer capabilities:");	BufferCapabilities bc = bs.getCapabilities();	System.out.println("isFullScreenRequired = " + bc.isFullScreenRequired());	System.out.println("isPageFlipping = " + bc.isPageFlipping());	ImageCapabilities ic = bc.getBackBufferCapabilities();	System.out.println("isAccelerated = " + ic.isAccelerated());	System.out.println("isTrueVolatile = " + ic.isTrueVolatile());	isVolatile = ic.isTrueVolatile();	bufferStrategy = bs;	graphicsConfig = frame.getGraphicsConfiguration();    }