Package org.jdesktop.wonderland.client.hud

Examples of org.jdesktop.wonderland.client.hud.HUDMessage


    void handleAppExitted(final AppConventionalCellAppExittedMessage message) {
        String text = BUNDLE.getString("App_Exit");
        text = MessageFormat.format(text, message.getAppName(), message.getExitValue());
       
        HUD mainHUD = HUDManagerFactory.getHUDManager().getHUD("main");
        HUDMessage hudMessage = mainHUD.createMessage(text);
        hudMessage.setPreferredLocation(Layout.NORTHEAST);
        mainHUD.addComponent(hudMessage);
        hudMessage.setVisible(true);
        hudMessage.setVisible(false, 10000);
    }
View Full Code Here


                me = new ModelErrors(model);
                errorMap.put(model, me);

                // Notify the user via the HUD.
                HUD mainHUD = HUDManagerFactory.getHUDManager().getHUD("main");
                HUDMessage message = mainHUD.createMessage(java.util.ResourceBundle.getBundle("org/jdesktop/wonderland/modules/artimport/client/jme/resources/Bundle").getString("MODEL_LOADING_GENERATED_WARNINGS"), MESSAGE_TYPE.WARNING, BUTTONS.NONE);
                message.setPreferredLocation(Layout.NORTH);
                mainHUD.addComponent(message);
                message.setVisible(true);
                message.setVisible(false, 5000);
            }
            me.addError(level, msg);
        }
    }
View Full Code Here

TOP

Related Classes of org.jdesktop.wonderland.client.hud.HUDMessage

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.