addTraverseListener(new TraverseListener() { public void keyTraversed(TraverseEvent event) { if (event.detail == SWT.TRAVERSE_MNEMONIC) { onMnemonic(event); } } });
public CLabel(Composite parent, int style) {	super(parent, checkStyle(style));		if ((style & SWT.CENTER) != 0) align = SWT.CENTER;	if ((style & SWT.RIGHT) != 0)  align = SWT.RIGHT;	if ((style & SWT.LEFT) != 0)   align = SWT.LEFT;		addPaintListener(new PaintListener(){		public void paintControl(PaintEvent event) {			onPaint(event);		}	});		addDisposeListener(new DisposeListener(){		public void widgetDisposed(DisposeEvent event) {			onDispose(event);		}	});	initAccessible();}