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);
}
Aggregations