Search in sources :

Example 1 with FontDescriptor

use of org.eclipse.jface.resource.FontDescriptor in project azure-tools-for-java by Microsoft.

the class AzureViewDockerDialog method setTextField.

private void setTextField(Text textField, String text) {
    textField.setText(text != null ? text : "-unknown-");
    textField.setEditable(false);
    //		textField.setBackground(AzureDockerUIResources.getColor(37)); // SWT.COLOR_TRANSPARENT
    FontDescriptor boldDescriptor = FontDescriptor.createFrom(textField.getFont()).setStyle(SWT.BOLD);
    Font boldFont = boldDescriptor.createFont(textField.getDisplay());
    textField.setFont(boldFont);
}
Also used : Font(org.eclipse.swt.graphics.Font) FontDescriptor(org.eclipse.jface.resource.FontDescriptor)

Aggregations

FontDescriptor (org.eclipse.jface.resource.FontDescriptor)1 Font (org.eclipse.swt.graphics.Font)1