public void setFullscreen(final boolean fullscreen) {
	/*
	 * if(macOsUtils != null) { macOsUtils.setFullscreen(fullscreen);
	 * return; }
	 */
	SwingUtilities.invokeLater(new Runnable() {
	    @Override
	    public void run() {
		GraphicsDevice screen = GraphicsEnvironment.getLocalGraphicsEnvironment().getDefaultScreenDevice();
		if (fullscreen) {
		    screen.setFullScreenWindow(frame);
		    DisplayMode[] modes = screen.getDisplayModes();
		    DisplayMode current = screen.getDisplayMode();
		    for (DisplayMode mode : modes) {
			if (mode.getWidth() * mode.getHeight() > current.getWidth() * current.getHeight() && mode.getRefreshRate() > current.getRefreshRate())
			    current = mode;
		    }
		    screen.setDisplayMode(current);
		    System.out.println("DisplayMode: " + current.getWidth() + "x" + current.getHeight() + "x" + current.getBitDepth() + " @" + current.getRefreshRate() + "Hz");
		    frame.setSize(current.getWidth(), current.getHeight());
		} else {
		    screen.setFullScreenWindow(null);
		}
	    }
	});
    }