cmpDropDown.addKeyListener( this ); cmpDropDown.addFocusListener( this );
Listener listenerCmpDropDown = new Listener( ) {  public void handleEvent( Event event ) { handleEventCmpDropDown( event ); } }; cmpDropDown.addListener( SWT.KeyDown, listenerCmpDropDown ); cmpDropDown.addListener( SWT.FocusOut, listenerCmpDropDown );
	private void createDropDownComponent( int iXLoc, int iYLoc )	{		Shell shell = new Shell( this.getShell( ), SWT.NONE );		shell.setLayout( new FillLayout( ) );		shell.setSize( this.getSize( ).x, 150 );		shell.setLocation( iXLoc, iYLoc );		FillLayout fillDropDown = new FillLayout( );		fillDropDown.type = SWT.VERTICAL;		cmpDropDown = new Composite( shell, SWT.NONE );		cmpDropDown.setLayout( fillDropDown );		cmpDropDown.addKeyListener( this );		cmpDropDown.addFocusListener( this );		for ( int iC = 0; iC < this.iLineDecorator.length; iC++ )		{			HeadStyleCanvas cnv = new HeadStyleCanvas( cmpDropDown,					SWT.NONE,					iLineDecorator[iC] );			cnv.setSize( cmpDropDown.getSize( ).x, cnvSelection.getSize( ).y );			cnv.addMouseListener( this );		}		shell.layout( );		shell.open( );	}