private Point getFirstMonitorSize() { // Here Point is org.eclipse.swt.graphics.Point
Display display = Display.getDefault();
if (display != null) {
Monitor[] monitors = display.getMonitors();
if (monitors.length == 1) {
Rectangle clientArea = monitors[0].getClientArea();
return new Point(clientArea.width / 2, clientArea.height / 2);
}
}
return null;
}
I found out this for positioning but i don’t know how to use in wizard dialog?
You can position your wizard dialog by calling
wizardDialog.getShell().setLocation(..).