cBlack.dispose( ); cWhite.dispose( ); gc.dispose( ); }
	public void paintControl( PaintEvent pe )	{		Color cBlack = new Color( this.getDisplay( ), 0, 0, 0 );		Color cWhite = new Color( this.getDisplay( ), 255, 255, 255 );		GC gc = pe.gc;		gc.setForeground( cBlack );		int iCellWidth = this.getSize( ).x / 8;		int iCellHeight = this.getSize( ).y / 5;		for ( int iR = 0; iR < 5; iR++ )		{			for ( int iC = 0; iC < 8; iC++ )			{				try				{					gc.setBackground( colorMap[( iR * 8 ) + iC] );				}				catch ( Throwable e )				{					e.printStackTrace( );				}				gc.fillRectangle( iC * iCellWidth,						iR * iCellHeight,						iCellWidth,						iCellHeight );				// Highlight currently selected color if it exists in this list				if ( colorSelection != null						&& colorSelection.equals( colorMap[( iR * 8 ) + iC] ) )				{					gc.drawRectangle( iC * iCellWidth,							iR * iCellHeight,							iCellWidth - 2,							iCellHeight - 2 );					gc.setForeground( cWhite );					gc.drawRectangle( iC * iCellWidth + 1,							iR * iCellHeight + 1,							iCellWidth - 3,							iCellHeight - 3 );					gc.setForeground( cBlack );				}			}		}		cBlack.dispose( );		cWhite.dispose( );		gc.dispose( );	}