Package org.jdesktop.wonderland.modules.appbase.client.swing

Examples of org.jdesktop.wonderland.modules.appbase.client.swing.WindowSwing.addView()


            frame.setWindow(frameWindow);
            frame.setTitle(getTitle());

            // create a view
            frameView = hudDisplayer.createView(frameWindow);
            frameWindow.addView(frameView);

            // set view properties
            frameView.setPixelScaleOrtho(WonderlandHUD.HUD_SCALE, false);
            frameView.setSizeApp(new Dimension((int) (frameWindow.getWidth()), frameWindow.getHeight()), false);
            frameView.setLocationOrtho(new Vector2f(0.0f, (float) (WonderlandHUD.HUD_SCALE.y * getWindow().getHeight() / 2 + WonderlandHUD.HUD_SCALE.y * frameImpl.getPreferredSize().height / 2)), false);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.