shell.setText(ACTION_ADDSERVER);
shell.setImage(ApplicationRegistry.getImage(CONSOLE_IMAGE));
shell.setLayout(new GridLayout());
createWidgets(shell);
shell.pack();
//get current size dialog, and application window size and location
int appWidth = appShell.getBounds().width;
int appHeight = appShell.getBounds().height;
int appLocX = appShell.getBounds().x;