List of usage examples for org.eclipse.swt.widgets Composite setFont
public void setFont(Font font)
From source file:WidgetTest2.java
public static Composite createComposite(Composite parent) { /** * Composite ** */ // Create new Composite instance final Composite composite = new Composite(parent, 0); // Get properties from the containing composite composite.setBackground(parent.getBackground()); composite.setForeground(parent.getForeground()); composite.setFont(parent.getFont()); // Set position and size composite.setBounds(X, Y, WIDTH, HEIGHT); return composite; }