Package com.jogamp.newt.event

Examples of com.jogamp.newt.event.WindowAdapter


        // Set the size very early to prevent the default one from being used (typically when exiting full screen mode)
        setSize(_settings.getWidth(), _settings.getHeight());
        // Make the window visible to realize the OpenGL surface.
        setVisible(true);
        if (_newtWindow.isRealized()) {
            _newtWindow.addWindowListener(new WindowAdapter() {
                @Override
                public void windowDestroyNotify(final WindowEvent e) {
                    _isClosing = true;
                }
View Full Code Here


        _newtWindow = Preconditions.checkNotNull(newtWindowContainer.getNewtWindow(), "newtWindow");
    }

    public void init() {
        _newtWindow.addKeyListener(this);
        _newtWindow.addWindowListener(new WindowAdapter() {
            @Override
            public void windowLostFocus(final WindowEvent e) {}

            @Override
            public void windowGainedFocus(final WindowEvent e) {
View Full Code Here

        final Controller controller = controllerProvider.get();
        window.addKeyListener(controller);
        window.addMouseListener(controller);
        window.addGLEventListener(controller);

        window.addWindowListener(new WindowAdapter() {
            @Override
            public void windowDestroyNotify(WindowEvent e) {
                logger.info("Window is closed.");
                window.destroy();
                System.exit(0);
View Full Code Here

TOP

Related Classes of com.jogamp.newt.event.WindowAdapter

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.