Examples of FontDialog


Examples of org.eclipse.swt.widgets.FontDialog

            if (changeButtonText != null) {
        changeFontButton.setText(changeButtonText);
      }
            changeFontButton.addSelectionListener(new SelectionAdapter() {
                public void widgetSelected(SelectionEvent event) {
                    FontDialog fontDialog = new FontDialog(changeFontButton
                            .getShell());
                    if (chosenFont != null) {
            fontDialog.setFontList(chosenFont);
          }
                    FontData font = fontDialog.open();
                    if (font != null) {
                        FontData[] oldFont = chosenFont;
                        if (oldFont == null) {
              oldFont = JFaceResources.getDefaultFont()
                                    .getFontData();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.