Example usage for org.eclipse.jface.dialogs Dialog applyDialogFont

List of usage examples for org.eclipse.jface.dialogs Dialog applyDialogFont

Introduction

In this page you can find the example usage for org.eclipse.jface.dialogs Dialog applyDialogFont.

Prototype

public static void applyDialogFont(Control control) 

Source Link

Document

Applies the dialog font to all controls that currently have the default font.

Usage

From source file:com.vectrace.MercurialEclipse.wizards.ProjectsImportPage.java

License:Open Source License

public void createControl(Composite parent) {

    initializeDialogUnits(parent);//w  w  w. jav  a2 s. co m

    Composite workArea = new Composite(parent, SWT.NONE);
    setControl(workArea);

    workArea.setLayout(new GridLayout());
    workArea.setLayoutData(
            new GridData(GridData.FILL_BOTH | GridData.GRAB_HORIZONTAL | GridData.GRAB_VERTICAL));

    if (destinationSelectionEnabled) {
        createRootSelection(workArea);
    }
    createProjectsList(workArea);
    createWorkingSetGroup(workArea);
    restoreWidgetValues();
    Dialog.applyDialogFont(workArea);

}

From source file:com.vectrace.MercurialEclipse.wizards.ProjectsImportPage.java

License:Open Source License

/**
 * Create the selection buttons in the listComposite.
 *
 * @param listComposite//  www. ja v  a  2 s .c  om
 */
private void createSelectionButtons(Composite listComposite) {
    Composite buttonsComposite = new Composite(listComposite, SWT.NONE);
    GridLayout layout = new GridLayout();
    layout.marginWidth = 0;
    layout.marginHeight = 0;
    buttonsComposite.setLayout(layout);

    buttonsComposite.setLayoutData(new GridData(GridData.VERTICAL_ALIGN_BEGINNING));

    Button selectAll = new Button(buttonsComposite, SWT.PUSH);
    selectAll.setText("&Select All");
    selectAll.addSelectionListener(new SelectionAdapter() {
        @Override
        public void widgetSelected(SelectionEvent e) {
            enableAllProjects();
        }
    });
    Dialog.applyDialogFont(selectAll);
    setButtonLayoutData(selectAll);

    Button deselectAll = new Button(buttonsComposite, SWT.PUSH);
    deselectAll.setText("&Deselect All");
    deselectAll.addSelectionListener(new SelectionAdapter() {

        @Override
        public void widgetSelected(SelectionEvent e) {
            disableAllProjects();
        }
    });
    Dialog.applyDialogFont(deselectAll);
    setButtonLayoutData(deselectAll);

    Button refresh = new Button(buttonsComposite, SWT.PUSH);
    refresh.setText("R&efresh");
    refresh.addSelectionListener(new SelectionAdapter() {

        @Override
        public void widgetSelected(SelectionEvent e) {
            if (destinationDir != null) {
                updateProjectsList(destinationDir.getAbsolutePath());
            }
        }
    });
    Dialog.applyDialogFont(refresh);
    setButtonLayoutData(refresh);
}

From source file:com.vmware.vfabric.ide.eclipse.tcserver.internal.ui.TcServer21InstanceCreationFragment.java

License:Open Source License

@Override
public Composite createComposite(Composite parent, IWizardHandle handle) {
    this.wizardHandle = handle;

    handle.setTitle("Create tc Server Instance");
    handle.setDescription(SPECIFY_INSTANCE_PARAMETERS_MESSAGE);
    handle.setImageDescriptor(TcServerImages.WIZB_SERVER);

    SharedScrolledComposite scroller = new SharedScrolledComposite(parent, SWT.V_SCROLL | SWT.H_SCROLL) {
    };//from  w  w  w .  ja va  2s .c  o  m
    //      scroller.setWidthHint(500); // Avoid excessively wide dialogs
    //      Display display = Display.getCurrent();
    //      Color blue = display.getSystemColor(SWT.COLOR_BLUE);
    //      scroller.setBackground(blue);
    scroller.setExpandHorizontal(true);
    scroller.setExpandVertical(true);

    Composite page = new Composite(scroller, SWT.NONE);
    page.setLayout(new GridLayout(3, false));

    Label label = new Label(page, SWT.NONE);
    label.setText("Name:");

    nameText = new Text(page, SWT.BORDER);
    GridDataFactory.fillDefaults().grab(true, false).span(2, 1).applyTo(nameText);
    nameText.addModifyListener(new ModifyListener() {
        public void modifyText(ModifyEvent e) {
            validate();
            ((ServerWorkingCopy) wc).setAttribute(TcServer.KEY_SERVER_NAME, nameText.getText());
        }
    });

    label = new Label(page, SWT.NONE);
    label.setText("Templates:");

    templateViewer = CheckboxTableViewer.newCheckList(page, SWT.BORDER);
    GC gc = new GC(page);
    FontMetrics fm = gc.getFontMetrics();
    int textLineHeight = fm.getHeight();
    int hintHeight = textLineHeight * 13; // We don't yet know how big
    // templates array is, so use
    // something reasonable
    gc.dispose();

    GridDataFactory.fillDefaults().span(3, 1).grab(true, true).hint(SWT.DEFAULT, hintHeight)
            .applyTo(templateViewer.getControl());

    templateViewer.setContentProvider(new IStructuredContentProvider() {
        public void inputChanged(Viewer viewer, Object oldInput, Object newInput) {
            // ignore
        }

        public void dispose() {
            // ignore
        }

        public Object[] getElements(Object inputElement) {
            return templates.toArray();
        }
    });

    // templateViewer.setLabelProvider(new ChildLabelProvider());

    templateViewer.addSelectionChangedListener(new ISelectionChangedListener() {
        public void selectionChanged(SelectionChangedEvent event) {
            validate();

            ISelection selection = event.getSelection();
            TcServerRuntime tcRuntime = (TcServerRuntime) runtime.loadAdapter(TcServerRuntime.class,
                    new NullProgressMonitor());
            if (selection instanceof StructuredSelection && tcRuntime != null) {
                Object obj = ((StructuredSelection) selection).getFirstElement();
                File templateDir = obj instanceof String ? tcRuntime.getTemplateFolder((String) obj) : null;

                if (templateDir != null && templateDir.exists() && templateDir.isDirectory()) {
                    readmeLabel.setText("Information for template " + templateDir.getName() + ": ");
                    File readmeFile = new File(templateDir.getPath().concat("/README.txt"));
                    try {
                        String readmeFileContents = FileUtil.readFile(readmeFile, new NullProgressMonitor());
                        readmeText.setText(readmeFileContents);
                    } catch (CoreException e) {
                        readmeText.setText(
                                NLS.bind("Could not read information file for {0}.\n\nCheck permissions on {1}",
                                        templateDir.getName(), readmeFile));
                    }
                    updateChildFragments();

                } else {
                    readmeText.setText("");
                }

            }
        }
    });

    templateViewer.setSorter(new ViewerSorter());

    Link link = new Link(page, SWT.NONE);
    String message = "(for more templates, please visit the <a>tc server documentation</a>)";
    link.setText(message);
    link.addSelectionListener(new SelectionAdapter() {
        @Override
        public void widgetSelected(SelectionEvent e) {
            UiUtil.openUrl("https://tcserver.docs.pivotal.io/4x/docs-tcserver/topics/template.html");
        }
    });
    GridDataFactory.fillDefaults().span(3, 1).align(SWT.END, SWT.BEGINNING).applyTo(link);

    readmeLabel = new Label(page, SWT.NONE);
    GridDataFactory.fillDefaults().span(3, 1).grab(true, false).applyTo(readmeLabel);
    readmeLabel.setText("Template information:");

    readmeText = new Text(page, SWT.V_SCROLL | SWT.BORDER | SWT.READ_ONLY | SWT.WRAP);
    gc = new GC(page);
    fm = gc.getFontMetrics();
    textLineHeight = fm.getHeight();
    gc.dispose();

    GridDataFactory.fillDefaults().span(3, 1).grab(true, false).hint(SWT.DEFAULT, textLineHeight * 7)
            .applyTo(readmeText);
    readmeText.setText("Click on a template to see information about that template.");

    Group layoutGroup = new Group(page, SWT.BORDER);
    GridDataFactory.fillDefaults().span(3, 1).grab(true, false).applyTo(layoutGroup);
    layoutGroup.setLayout(new GridLayout(1, false));
    layoutGroup.setText("Layout");

    separateLayoutButton = new Button(layoutGroup, SWT.RADIO);
    separateLayoutButton.setText("Separate (recommended default)");

    combinedLayoutButton = new Button(layoutGroup, SWT.RADIO);
    combinedLayoutButton.setText("Combined");

    defaultLocationCheckbox = new Button(page, SWT.CHECK | SWT.LEFT);
    defaultLocationCheckbox.setSelection(true);
    defaultLocationCheckbox.setText("Use default instance location");
    GridDataFactory.fillDefaults().span(3, 1).applyTo(defaultLocationCheckbox);
    defaultLocationCheckbox.addSelectionListener(new SelectionAdapter() {
        @Override
        public void widgetSelected(SelectionEvent e) {
            boolean checked = defaultLocationCheckbox.getSelection();
            if (checked) {
                locationPathField.setText(runtime.getLocation().toOSString());
                ((ServerWorkingCopy) wc).setAttribute(ITomcatServer.PROPERTY_INSTANCE_DIR, (String) null);
            }
            validate();
            locationLabel.setEnabled(!checked);
            locationPathField.setEnabled(!checked);
            locationBrowseButton.setEnabled(!checked);
        }
    });

    locationLabel = new Label(page, SWT.NONE);
    locationLabel.setText("Location:");
    GridData data = new GridData();
    locationLabel.setLayoutData(data);
    locationLabel.setEnabled(false);

    locationPathField = new Combo(page, SWT.DROP_DOWN);
    locationPathField.setEnabled(false);
    data = new GridData(GridData.FILL_HORIZONTAL);
    locationPathField.setLayoutData(data);
    locationPathField.addModifyListener(new ModifyListener() {
        public void modifyText(ModifyEvent e) {
            validate();
            ((ServerWorkingCopy) wc).setAttribute(ITomcatServer.PROPERTY_INSTANCE_DIR,
                    locationPathField.getText());
        }
    });

    locationBrowseButton = new Button(page, SWT.PUSH);
    locationBrowseButton.setText("Browse...");
    data = new GridData();
    locationBrowseButton.setLayoutData(data);
    locationBrowseButton.addSelectionListener(new SelectionAdapter() {
        @Override
        public void widgetSelected(SelectionEvent event) {
            handleLocationBrowseButtonPressed();
            validate();
        }
    });
    locationBrowseButton.setEnabled(false);

    Dialog.applyDialogFont(page);
    page.pack(true);
    scroller.setContent(page);
    return scroller;
}

From source file:com.vmware.vfabric.ide.eclipse.tcserver.internal.ui.TcServerInstanceConfiguratorPage.java

License:Open Source License

public void createControl(Composite parent) {
    Composite composite = new Composite(parent, SWT.NONE);
    composite.setLayout(new GridLayout(2, false));

    Label label = new Label(composite, SWT.NONE);
    label.setText("Name:");

    nameText = new Text(composite, SWT.BORDER);
    GridDataFactory.fillDefaults().grab(true, false).applyTo(nameText);
    nameText.addModifyListener(new ModifyListener() {
        public void modifyText(ModifyEvent e) {
            validate();//from w ww. j av a2 s. co  m
        }
    });

    label = new Label(composite, SWT.NONE);
    GridDataFactory.fillDefaults().span(2, 1).applyTo(label);
    label.setText("Templates:");

    templateViewer = CheckboxTableViewer.newCheckList(composite, SWT.BORDER);
    GridDataFactory.fillDefaults().span(2, 1).grab(true, true).applyTo(templateViewer.getControl());
    templateViewer.setContentProvider(new IStructuredContentProvider() {
        public void inputChanged(Viewer viewer, Object oldInput, Object newInput) {
            // ignore
        }

        public void dispose() {
            // ignore
        }

        public Object[] getElements(Object inputElement) {
            return templates.toArray();
        }
    });
    templateViewer.addSelectionChangedListener(new ISelectionChangedListener() {
        public void selectionChanged(SelectionChangedEvent event) {
            validate();
        }
    });
    Group layoutGroup = new Group(composite, SWT.BORDER);
    GridDataFactory.fillDefaults().span(2, 1).grab(true, false).applyTo(layoutGroup);
    layoutGroup.setLayout(new GridLayout(1, false));
    layoutGroup.setText("Layout");

    separateLayoutButton = new Button(layoutGroup, SWT.RADIO);
    separateLayoutButton.setText("Separate");

    combinedLayoutButton = new Button(layoutGroup, SWT.RADIO);
    combinedLayoutButton.setText("Combined");

    initialize();
    validate();

    Dialog.applyDialogFont(composite);
    setControl(composite);
}

From source file:com.vmware.vfabric.ide.eclipse.tcserver.internal.ui.TcServerTemplateConfigurationFragment.java

License:Open Source License

@Override
public Composite createComposite(Composite parent, IWizardHandle handle) {
    this.wizardHandle = handle;

    handle.setTitle("Template Configuration");
    handle.setDescription(SPECIFY_TEMPLATE_PROPERTIES_MESSAGE);
    handle.setImageDescriptor(TcServerImages.WIZB_SERVER);

    Composite composite = new Composite(parent, SWT.NONE);
    composite.setLayout(new GridLayout(2, false));

    Label templateNameLabel = new Label(composite, SWT.NONE);
    GridDataFactory.fillDefaults().span(2, 1).applyTo(templateNameLabel);
    templateNameLabel.setText("Enter properties for template " + templateName + ":");

    for (TemplateProperty prop : properties) {
        Label message = new Label(composite, SWT.WRAP);
        GridDataFactory.fillDefaults().grab(true, false).align(SWT.FILL, SWT.BEGINNING).hint(200, SWT.DEFAULT)
                .applyTo(message);/*from w  ww .j av  a  2s .  com*/
        message.setText(prop.getMessage());

        final Text value = new Text(composite, SWT.BORDER);
        GridDataFactory.fillDefaults().grab(true, false).align(SWT.FILL, SWT.TOP).applyTo(value);
        value.setText(prop.getDefault());
        value.setData(prop);
        value.addModifyListener(new ModifyListener() {
            public void modifyText(ModifyEvent e) {
                ((TemplateProperty) value.getData()).setValue(value.getText());
            }
        });
    }

    Dialog.applyDialogFont(composite);
    return composite;
}

From source file:com.wdev91.eclipse.copyright.preferences.CopyrightPreferencePage.java

License:Open Source License

@Override
protected Control createContents(Composite parent) {
    Font font = parent.getFont();
    FontData[] fontData = font.getFontData();
    GridData data;//from w ww.j  ava 2  s .co m
    int widthHint = convertHorizontalDLUsToPixels(IDialogConstants.BUTTON_WIDTH);

    input = new CopyrightsInput(false);

    Composite top = new Composite(parent, SWT.NONE);
    GridLayout layout = new GridLayout(3, false);
    layout.marginHeight = 0;
    layout.marginWidth = 0;
    top.setLayout(layout);
    top.setFont(font);

    Label l1 = new Label(top, SWT.NONE);
    l1.setText(Messages.CopyrightPreferencePage_labelOwner);
    ownerText = new Text(top, SWT.BORDER);
    data = new GridData();
    data.horizontalSpan = 2;
    data.widthHint = 200;
    ownerText.setLayoutData(data);

    Label l2 = new Label(top, SWT.NONE);
    l2.setText(Messages.CopyrightPreferencePage_labelLicenses);
    data = new GridData(GridData.FILL_HORIZONTAL);
    data.horizontalSpan = 3;
    l2.setLayoutData(data);
    l2.setFont(font);

    List list = new List(top, SWT.BORDER | SWT.V_SCROLL);
    data = new GridData(GridData.FILL_HORIZONTAL | GridData.GRAB_HORIZONTAL);
    data.heightHint = (fontData.length > 0 ? fontData[0].getHeight() : 10) * LIST_LINES_NUMBER;
    data.horizontalSpan = 2;
    data.verticalSpan = 3;
    list.setLayoutData(data);
    list.setFont(font);
    copyrightsList = new ListViewer(list);
    copyrightsList.setContentProvider(new CopyrightContentProvider());
    copyrightsList.setLabelProvider(new CopyrightLabelProvider());
    copyrightsList.setComparator(new CopyrightsComparator());
    copyrightsList.setInput(input);
    copyrightsList.addSelectionChangedListener(new ISelectionChangedListener() {
        public void selectionChanged(SelectionChangedEvent event) {
            updateContent();
        }
    });

    addButton = new Button(top, SWT.PUSH);
    addButton.setText(Messages.CopyrightPreferencePage_buttonAdd);
    Dialog.applyDialogFont(addButton);
    data = new GridData(GridData.HORIZONTAL_ALIGN_FILL);
    data.widthHint = Math.max(widthHint, addButton.computeSize(SWT.DEFAULT, SWT.DEFAULT, true).x);
    addButton.setLayoutData(data);

    modifyButton = new Button(top, SWT.PUSH);
    modifyButton.setText(Messages.CopyrightPreferencePage_buttonModify);
    data = new GridData(GridData.HORIZONTAL_ALIGN_FILL);
    data.widthHint = Math.max(widthHint, modifyButton.computeSize(SWT.DEFAULT, SWT.DEFAULT, true).x);
    modifyButton.setLayoutData(data);

    deleteButton = new Button(top, SWT.PUSH);
    deleteButton.setText(Messages.CopyrightPreferencePage_buttonDelete);
    data = new GridData(GridData.HORIZONTAL_ALIGN_FILL);
    data.widthHint = Math.max(widthHint, deleteButton.computeSize(SWT.DEFAULT, SWT.DEFAULT, true).x);
    deleteButton.setLayoutData(data);

    tab = new TabFolder(top, SWT.TOP);
    data = new GridData(GridData.FILL_BOTH);
    data.horizontalSpan = 3;
    tab.setLayoutData(data);

    TabItem headerTab = new TabItem(tab, SWT.NONE);
    headerTab.setText(Messages.CopyrightPreferencePage_labelHeader);
    headerText = new Text(tab, SWT.BORDER | SWT.MULTI | SWT.WRAP | SWT.H_SCROLL | SWT.V_SCROLL);
    headerTab.setControl(headerText);

    TabItem licenseTab = new TabItem(tab, SWT.NONE);
    licenseTab.setText(Messages.CopyrightPreferencePage_labelLicenseFile);
    Composite licenseTabContent = new Composite(tab, SWT.NONE);
    licenseTabContent.setLayout(new GridLayout(2, false));
    Label l3 = new Label(licenseTabContent, SWT.NONE);
    l3.setText(Messages.CopyrightPreferencePage_labelFilename);
    licenseFile = new Text(licenseTabContent, SWT.BORDER);
    licenseFile.setLayoutData(new GridData(GridData.FILL_HORIZONTAL));
    Label l4 = new Label(licenseTabContent, SWT.NONE);
    l4.setText(Messages.CopyrightPreferencePage_labelFilecontent);
    data = new GridData(GridData.FILL_HORIZONTAL);
    data.horizontalSpan = 2;
    l4.setLayoutData(data);
    licenseText = new Text(licenseTabContent, SWT.BORDER | SWT.MULTI | SWT.WRAP | SWT.H_SCROLL | SWT.V_SCROLL);
    data = new GridData(GridData.FILL_BOTH);
    data.horizontalSpan = 2;
    licenseText.setLayoutData(data);
    licenseTab.setControl(licenseTabContent);

    SelectionListener listener = new SelectionListener() {
        public void widgetDefaultSelected(SelectionEvent e) {
        }

        public void widgetSelected(SelectionEvent e) {
            if (e.widget == addButton) {
                addCopyright();
            } else if (e.widget == modifyButton) {
                updateCopyright();
            } else if (e.widget == deleteButton) {
                deleteCopyright();
            }
        }
    };
    addButton.addSelectionListener(listener);
    modifyButton.addSelectionListener(listener);
    deleteButton.addSelectionListener(listener);

    ownerText.setText(getPreferenceStore().getString(Constants.PREFERENCES_OWNER));
    updateContent();
    PlatformUI.getWorkbench().getHelpSystem().setHelp(parent, CONTEXT_ID);
    return top;
}

From source file:com.windowtester.eclipse.ui.jdt.RuntimeClasspathContainerPage.java

License:Open Source License

public void createControl(Composite parent) {
    Composite container = new Composite(parent, SWT.NULL);
    container.setLayout(new GridLayout());
    Label requiredWintesterRuntimeLabel = new Label(container, SWT.NULL);
    requiredWintesterRuntimeLabel.setText("Required WinTester runtime:");
    viewer = new TableViewer(container, SWT.BORDER | SWT.V_SCROLL | SWT.H_SCROLL);
    viewer.setContentProvider(new EntryContentProvider());
    viewer.setLabelProvider(new EntryLabelProvider());
    GridData gd = new GridData(GridData.FILL_BOTH);
    gd.widthHint = 400;//from ww  w .j a  v  a2 s. c o  m
    gd.heightHint = 300;
    viewer.getTable().setLayoutData(gd);
    Dialog.applyDialogFont(container);
    if (realEntries != null)
        initializeView();
    setControl(container);
}

From source file:com.windowtester.swt.codegen.wizards.NewTestTypeWizardPage.java

License:Open Source License

public void createControl(Composite parent) {
    initializeDialogUnits(parent);//  ww  w.ja v  a 2s .co  m

    Composite composite = new Composite(parent, SWT.NONE);

    int nColumns = 4;

    GridLayout layout = new GridLayout();
    layout.numColumns = nColumns;
    composite.setLayout(layout);

    createContainerControls(composite, nColumns);
    createPackageControls(composite, nColumns);
    //createEnclosingTypeControls(composite, nColumns);

    createSeparator(composite, nColumns);

    createTypeNameControls(composite, nColumns);
    createModifierControls(composite, nColumns);

    createSuperClassControls(composite, nColumns);
    createSetupTable(composite, nColumns);

    createSeparator(composite, nColumns);

    createAddContainerControl(composite, nColumns);
    createAddDependenciesControl(composite, nColumns);

    //createSuperInterfacesControls(composite, nColumns);

    setControl(composite);

    Dialog.applyDialogFont(composite);
    PlatformUI.getWorkbench().getHelpSystem().setHelp(composite,
            "com.windowtester.eclipse.help.newTest_wizard");

}

From source file:com.wuetherich.osgi.ds.annotations.internal.preferences.fwk.ProjectSelectionDialog.java

License:Open Source License

@Override
protected Control createDialogArea(Composite parent) {
    // page group
    Composite composite = (Composite) super.createDialogArea(parent);

    Font font = parent.getFont();
    composite.setFont(font);//from   w w w  . j  ava2 s  . co  m

    createMessageArea(composite);

    _tableViewer = new TableViewer(composite, SWT.H_SCROLL | SWT.V_SCROLL | SWT.BORDER);
    _tableViewer.addSelectionChangedListener(new ISelectionChangedListener() {
        @Override
        public void selectionChanged(SelectionChangedEvent event) {
            doSelectionChanged(((IStructuredSelection) event.getSelection()).toArray());
        }
    });
    _tableViewer.addDoubleClickListener(new IDoubleClickListener() {
        @Override
        public void doubleClick(DoubleClickEvent event) {
            okPressed();
        }
    });
    GridData data = new GridData(SWT.FILL, SWT.FILL, true, true);
    data.heightHint = SIZING_SELECTION_WIDGET_HEIGHT;
    data.widthHint = SIZING_SELECTION_WIDGET_WIDTH;
    _tableViewer.getTable().setLayoutData(data);

    _tableViewer.setLabelProvider(new ColumnLabelProvider() {

        @Override
        public Image getImage(Object element) {
            return PlatformUI.getWorkbench().getSharedImages()
                    .getImage(org.eclipse.ui.ide.IDE.SharedImages.IMG_OBJ_PROJECT);
        }

        @Override
        public String getText(Object element) {
            return ((IProject) element).getName();
        }
    });
    _tableViewer.setContentProvider(ArrayContentProvider.getInstance());
    _tableViewer.setComparator(new ViewerComparator());
    _tableViewer.getControl().setFont(font);

    _tableViewer.setInput(DsAnnotationsCore.getDsAnnotationAwareProjects());

    doSelectionChanged(new Object[0]);
    Dialog.applyDialogFont(composite);
    return composite;
}

From source file:com.xored.glance.internal.ui.panels.SearchDialog.java

License:Open Source License

protected void applyFonts(final Composite composite) {
    Dialog.applyDialogFont(composite);

    if (info != null) {
        final Font font = info.getFont();
        final FontData[] fontDatas = font.getFontData();
        for (int i = 0; i < fontDatas.length; i++) {
            fontDatas[i].setHeight(fontDatas[i].getHeight() * 9 / 10);
        }//from   w w w  . ja v a  2 s . c  o  m
        infoFont = new Font(info.getDisplay(), fontDatas);
        info.setFont(infoFont);
    }
}