Java Code Examples for org.eclipse.swt.widgets.Label.getDisplay()

The following are Jave code examples for showing how to use getDisplay() of the org.eclipse.swt.widgets.Label class. You can vote up the examples you like. Your votes will be used in our system to get more good examples.
+ Save this method
Example 1
Project: Hydrograph   File:   View Source Code Vote up 5 votes
private void attachNote(final Composite container) {
	Label lblParameterGridNote=new Label(container, SWT.NONE);
	FontData fontData = lblParameterGridNote.getFont().getFontData()[0];
	Font font = new Font(lblParameterGridNote.getDisplay(), new FontData(fontData.getName(), fontData
	    .getHeight(), SWT.ITALIC));
	lblParameterGridNote.setText("Note - New parameters will be visible only after you save the job.");