Package net.datacrow.console.windows.messageboxes

Examples of net.datacrow.console.windows.messageboxes.MessageBox


     * Opens an information dialog. The message can either be a string or a resource key.
     * @param msg Message string or resource key.
     * @return
     */   
    public static void displayMessage(String msg) {
        MessageBox mb = new MessageBox(msg.startsWith("msg") ? DcResources.getText(msg) : msg, MessageBox._INFORMATION);
        open(mb);
    }
View Full Code Here


     * Opens an error dialog. The message can either be a string or a resource key.
     * @param msg Message string or resource key.
     * @return
     */   
    public static void displayErrorMessage(String msg) {
        MessageBox mb = new MessageBox(msg.startsWith("msg") ? DcResources.getText(msg) : msg, MessageBox._ERROR);
        open(mb);
    }
View Full Code Here

     * @param msg Message string or resource key.
     * @return
     */   
    public static void displayWarningMessage(String msg) {
        String text = msg != null && msg.startsWith("msg") ? DcResources.getText(msg) : msg;
        MessageBox mb = new MessageBox(text, MessageBox._WARNING);
        open(mb);
    }   
View Full Code Here

TOP

Related Classes of net.datacrow.console.windows.messageboxes.MessageBox

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.