Example usage for org.eclipse.swt.widgets Display setAppName

List of usage examples for org.eclipse.swt.widgets Display setAppName

Introduction

In this page you can find the example usage for org.eclipse.swt.widgets Display setAppName.

Prototype

public static void setAppName(String name) 

Source Link

Document

Sets the application name to the argument.

Usage

From source file:Snippet178.java

public static void main(String[] arg) {
    Display.setAppName("AppMenu"); // sets name in Dock
    Display display = new Display();
    hookApplicationMenu(display, "About AppMenu");
    Shell shell = new Shell(display);
    shell.setText("Main Window");
    shell.open();/*  w w w  . j a v  a2 s  . com*/
    while (!shell.isDisposed())
        if (!display.readAndDispatch())
            display.sleep();

    display.dispose();
}