本文整理匯總了Java中org.eclipse.swt.widgets.Group.setFont方法的典型用法代碼示例。如果您正苦於以下問題:Java Group.setFont方法的具體用法?Java Group.setFont怎麽用?Java Group.setFont使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類org.eclipse.swt.widgets.Group
的用法示例。
在下文中一共展示了Group.setFont方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: createContent
import org.eclipse.swt.widgets.Group; //導入方法依賴的package包/類
public Control createContent(Composite composite)
{
fGroup = new Group(composite, SWT.NONE);
fGroup.setFont(composite.getFont());
fGroup.setLayout(initGridLayout(new GridLayout(3, false), true));
fGroup.setText("Registry Project");
List<IProject> projects = new ArrayList<>();
Object[] children = new JarProjectContentProvider(null).getChildren(ResourcesPlugin.getWorkspace());
for( Object object : children )
{
projects.add((IProject) object);
}
fProject.setElements(projects);
fProject.selectFirstElement();
fProject.doFillIntoGrid(fGroup, 3);
return fGroup;
}
示例2: createOptionsGroup
import org.eclipse.swt.widgets.Group; //導入方法依賴的package包/類
/**
* Create the options specification widgets.
*/
protected void createOptionsGroup(Composite parent) {
// options group
Group optionsGroup = new Group(parent, SWT.NONE);
GridLayout layout = new GridLayout();
optionsGroup.setLayout(layout);
optionsGroup.setLayoutData(new GridData(GridData.HORIZONTAL_ALIGN_FILL
| GridData.GRAB_HORIZONTAL));
optionsGroup.setText(IDEWorkbenchMessages.WizardExportPage_options);
optionsGroup.setFont(parent.getFont());
createOptionsGroupButtons(optionsGroup);
}
示例3: createGroupWidget
import org.eclipse.swt.widgets.Group; //導入方法依賴的package包/類
private void createGroupWidget() {
subGroup = new Group(inputContainer, SWT.NONE);
subGroup.setText(subgroupName);
subGroup.setFont(SWTResourceManager.getFont("Segoe UI", 9, SWT.BOLD));
}