getAwtContext().adjustDesktopSize(screenSize.width, screenSize.height); onResize();
    public Dimension changeScreenSize(String screenSizeId) {        final JNodeFrameBufferDevice dev = (JNodeFrameBufferDevice) GraphicsEnvironment.getLocalGraphicsEnvironment().getDefaultScreenDevice();        if (dev == null) {            throw new AWTError("No framebuffer device found");        }        GraphicsConfiguration[] configurations = dev.getConfigurations();        JNodeGraphicsConfiguration conf = null;        for (GraphicsConfiguration g_conf : configurations) {            if (screenSizeId.equals(g_conf.toString())) {                conf = (JNodeGraphicsConfiguration) g_conf;                break;            }        }        if (conf == null) {            log.warn("Configuration not found " + screenSizeId);            return getScreenSize();        }        this.config = conf;        log.info("Using: " + config);        this.api = dev.getAPI();        try {            //close the old stuff            this.graphics.close();            this.mouseHandler.close();            //open the new            this.graphics = api.open(config.getConfig());            if (graphics == null) {                log.debug("No Graphics for device: " + dev.getIDstring());            }            screenSize.width = config.getConfig().getScreenWidth();            screenSize.height = config.getConfig().getScreenHeight();            this.mouseHandler = new MouseHandler(dev.getDevice(), screenSize, getSystemEventQueueImpl(), keyboardHandler);            return getScreenSize();        } catch (Exception e) {            throw (AWTError) new AWTError(e.getMessage()).initCause(e);        }    }