fMainClassText.addKeyListener(new KeyAdapter() {  public void keyReleased(KeyEvent e) { fJarPackage.setMainClass(findMainMethodByName(fMainClassText.getText())); update(); } });
	protected void createMainClassGroup(Composite parent) {		// main type group		Composite mainClassGroup= new Composite(parent, SWT.NONE);		GridLayout layout= new GridLayout();		layout.numColumns= 3;		mainClassGroup.setLayout(layout);		mainClassGroup.setLayoutData(new GridData(GridData.HORIZONTAL_ALIGN_FILL | GridData.VERTICAL_ALIGN_FILL));		fMainClassLabel= new Label(mainClassGroup, SWT.NONE);		fMainClassLabel.setText(JarPackagerMessages.getString("JarManifestWizardPage.mainClass.label")); //$NON-NLS-1$		// entry field		fMainClassText= new Text(mainClassGroup, SWT.SINGLE | SWT.BORDER | SWT.READ_ONLY);		fMainClassText.addListener(SWT.Modify, fUntypedListener);		GridData data= new GridData(GridData.HORIZONTAL_ALIGN_FILL | GridData.GRAB_HORIZONTAL);		data.widthHint= convertWidthInCharsToPixels(40);		fMainClassText.setLayoutData(data);		// browse button		fMainClassBrowseButton= new Button(mainClassGroup, SWT.PUSH);		fMainClassBrowseButton.setText(JarPackagerMessages.getString("JarManifestWizardPage.mainClassBrowseButton.text")); //$NON-NLS-1$		fMainClassBrowseButton.setLayoutData(new GridData(GridData.HORIZONTAL_ALIGN_FILL));		fMainClassBrowseButton.addSelectionListener(new SelectionAdapter() {			public void widgetSelected(SelectionEvent e) {				handleMainClassBrowseButtonPressed();			}		});	}