new Label(s, SWT.NONE);
final Button btnChange = new Button(s, SWT.PUSH | SWT.BORDER);
btnChange.setText("Change Font");
btnChange.addSelectionListener(new SelectionAdapter() {
public void widgetSelected(SelectionEvent e) {
FontDialog fd = new FontDialog(s, SWT.NONE);
fd.setText("Select Font");
fd.setRGB(t.getForeground().getRGB());
fd.setFontList(t.getFont().getFontData());
FontData newFont = fd.open();
if(newFont==null)
return;
t.setFont(new Font(d, newFont));
t.setForeground(new Color(d, fd.getRGB()));
}
});
Button btnSave = new Button(s, SWT.NONE);