public static boolean setAppName() { if ( isMac() ) { // Sets the app name in main menu (so it works even when launching // from shell script) String appName = "Data Integration"; Display.setAppName( appName ); } return true; }
public void setWindowTitle(final String title) { this.shell.setText(title); Display.setAppName(title); }
@Override protected JavaGraphics createGraphics (Config config) { Display.setAppName(config.appName); display = new Display(); shell = new Shell(display); shell.setLayout(new FillLayout()); shell.addShellListener(new ShellAdapter() { public void shellActivated (ShellEvent e) { onResume(); } public void shellDeactivated (ShellEvent e) { onPause(); } }); comp = new Composite(shell, SWT.NONE); comp.setLayout(null); return new SWTGraphics(this, config, comp); }
@Override protected JavaGraphics createGraphics (Config config) { Display.setAppName(config.appName); display = new Display(); shell = new Shell(display); shell.setLayout(new FillLayout()); shell.addShellListener(new ShellAdapter() { public void shellActivated (ShellEvent e) { onResume(); } public void shellDeactivated (ShellEvent e) { onPause(); } }); comp = new Composite(shell, SWT.NONE); comp.setLayout(null); return new SWTGraphics(this, config, comp); }
/** Creates a new SWT platform and prepares it for operation. */ public SWTPlatform (Config config) { super(config); Display.setAppName(config.appName); display = new Display(); shell = new Shell(display); shell.setLayout(new FillLayout()); shell.addShellListener(new ShellAdapter() { public void shellActivated (ShellEvent e) { dispatchEvent(lifecycle, Lifecycle.RESUME); } public void shellDeactivated (ShellEvent e) { dispatchEvent(lifecycle, Lifecycle.PAUSE); } }); comp = new Composite(shell, SWT.NONE); comp.setLayout(null); graphics = new SWTGraphics(this, comp); input = new SWTInput(this); }
/** Creates a new SWT platform and prepares it for operation. */ public SWTPlatform (Config config) { super(config); Display.setAppName(config.appName); display = new Display(); shell = new Shell(display); shell.setLayout(new FillLayout()); shell.addShellListener(new ShellAdapter() { public void shellActivated (ShellEvent e) { dispatchEvent(lifecycle, Lifecycle.RESUME); } public void shellDeactivated (ShellEvent e) { dispatchEvent(lifecycle, Lifecycle.PAUSE); } }); comp = new Composite(shell, SWT.NONE); comp.setLayout(null); graphics = new SWTGraphics(this, comp); input = new SWTInput(this); }
@Override public Object start(IApplicationContext context) throws Exception { Display.setAppName("RCP Demo"); Shells.builder(SWT.SHELL_TRIM, AppGui::new) .setTitle("RCP Demo") .setSize(SwtMisc.scaleByFontHeight(40, 30)) .openOnDisplayBlocking(); return IApplication.EXIT_OK; }
Display.setAppName(applicationName);
Display.setAppName(getAppName());
/** * Start up the UI. * * The UIStarter class is the top level UI driver for the application. Assuming we are * running in UI mode (the only way currently supported), creating a UIStarter should be * one of the very first things we do, should only be done once, and the instance should * live until the program is being shut down. * * The UIStarter automatically creates a {@link ResultsTable}, which is the main class * that drives all the application-specific action. This class sets up generic stuff, * like the Display, the Shell, the icon, etc. * */ public UIStarter() { // Setup display and shell Display.setAppName(APPLICATION_NAME); display = new Display(); shell = new Shell(display); shell.setText(APPLICATION_NAME); appIcon = readImageFromPath(APPLICATION_ICON_PATH); setAppIcon(); GridLayout shellGridLayout = new GridLayout(3, false); shell.setLayout(shellGridLayout); // Create the main window resultsTable = new ResultsTable(this); setupMenuBar(); }
InterruptedException { Display.setAppName("RinSim"); final Display d = new Display();
InterruptedException { Display.setAppName("RinSim"); final Display d = new Display();
Display.setAppName("RinSim"); final Display d = builder.display().isPresent() ? builder.display().get()
Display.setAppName(Constants.APP_NAME);