请任何人帮助我如何更改此对话框以使用不同的 Windows 分辨率调整大小。
protected Object openDialogBox(Control cellEditorWindow)
{
dialog = new DialogHead();
dialog.setShell(550, 280);
dialog.setShellOnCenter();
dialog.setShellText("Properties");
dialog.setShellImage(BPMNUtils.getAbsolutePath()+ "icons/module.gif");
composite = dialog.getComposite(0, 0, 550, 435);
GridLayout layout = new GridLayout();
composite.setLayout(layout);
Group propertyGroup = dialog.getGroup(composite, "Properties", new Rectangle(5, 2, 530, 237));
//getPackage();
final Table table = dialog.getTable(propertyGroup, new Rectangle(10, 20, 422, 38));
table.setLinesVisible(true);
table.setHeaderVisible(true);
GridData gd_table = new GridData(SWT.FILL, SWT.FILL, true, true, 1, 3);
gd_table.heightHint = 160;
table.setLayoutData(gd_table);
dialog.getTableColumn(table, 0, "Name", 100);
dialog.getTableColumn(table, 1, "Type", 125);
dialog.getTableColumn(table, 2, "Value", 100);
dialog.getTableColumn(table, 3, "Correlation", 100);
dialog.getTableColumn(table, 4, "Mode", 68);
createInitialContents(table);
dialog.measureItem(table);
final TableEditor editor = new TableEditor(table);
final Button addButton = dialog.getPushButton(propertyGroup,"Add", new Rectangle(150, 210, 60, 24));
final Button deleteButton =dialog.getPushButton(propertyGroup,"Delete", new Rectangle(210, 210, 60, 24));
final Button okButton = dialog.getPushButton(propertyGroup,"OK", new Rectangle(270, 210, 60, 24));
final Button cancelButton =dialog.getPushButton(propertyGroup,"Cancel", new Rectangle(330, 210, 60, 24));
}