mainTab.getMinimizer().forceClose();
	private void createContent() {		mainMenuBar = new Menu( shell, SWT.BAR );		shell.setMenuBar( mainMenuBar );				// File		menuItem = new MenuItem ( mainMenuBar, SWT.CASCADE );		menuItem.setText ( "File" );		final Menu fileMenu = new Menu ( shell, SWT.DROP_DOWN );		menuItem.setMenu ( fileMenu );		// Build the fileMenu dynamically 		fileMenu.addMenuListener( new MenuListener() {			public void menuHidden( MenuEvent e ) { }			public void menuShown( MenuEvent e ) {				MenuItem [] menuItems = fileMenu.getItems ();				for ( int i = 0; i < menuItems.length; i++ ) {					menuItems[ i ].dispose();				}								// File>Kill core if connected && gui has not spawned the core				if ( mainTab.getCore().isConnected()					&& G2Gui.getCoreConsole() == null ) {									menuItem = new MenuItem ( fileMenu, SWT.PUSH );					menuItem.addListener ( SWT.Selection, new Listener () {						public void handleEvent ( Event e ) {														MessageBox confirm =								new MessageBox( 									shell,									SWT.YES | SWT.NO | SWT.ICON_QUESTION );									confirm.setMessage( G2GuiResources.getString( "MISC_AYS" ) );											if ( confirm.open() == SWT.YES ) {								Message killCore = new EncodeMessage( Message.S_KILL_CORE );								killCore.sendMessage( mainTab.getCore() );							}						} 					} );					menuItem.setText ( "&Kill core" );				}								// File>Exit				menuItem = new MenuItem ( fileMenu, SWT.PUSH );				menuItem.addListener ( SWT.Selection, new Listener () {					public void handleEvent ( Event e ) {						shell.close();					} 				} );				menuItem.setText ( "E&xit\tCtrl+W" );				menuItem.setAccelerator ( SWT.CTRL + 'W' );							}		} );		// Tools					menuItem = new MenuItem ( mainMenuBar, SWT.CASCADE );		menuItem.setText ( "Tools" );		subMenu = new Menu( shell, SWT.DROP_DOWN );		menuItem.setMenu( subMenu );					// Tools>Preferences			menuItem = new MenuItem( subMenu, SWT.PUSH );			menuItem.addListener( SWT.Selection, new Listener() {				public void handleEvent( Event event ) {						mainTab.openPreferences();				}			} );			menuItem.setText( "Preferences" );			// Help		menuItem = new MenuItem ( mainMenuBar, SWT.CASCADE );		menuItem.setText ( "Help" );		subMenu = new Menu ( shell, SWT.DROP_DOWN );		menuItem.setMenu( subMenu );					// Help>Homepage			menuItem = new MenuItem( subMenu, SWT.PUSH );			menuItem.addListener( SWT.Selection, 				new URLListener( "http://developer.berlios.de/projects/mldonkey/" )			);			menuItem.setText( "Homepage" );					// Help>Feedback			menuItem = new MenuItem( subMenu, SWT.PUSH );			menuItem.addListener( SWT.Selection, 				new URLListener( "http://mldonkey.berlios.de/modules.php?name=Forums&file=viewforum&f=9" )			);			menuItem.setText( "Feedback Forum" );						// Help>Bugs			menuItem = new MenuItem( subMenu, SWT.PUSH );			menuItem.addListener( SWT.Selection, 				new URLListener( "http://developer.berlios.de/bugs/?group_id=610" )			);			menuItem.setText( "Bugs/Suggestions" );						// Help>FAQ			menuItem = new MenuItem( subMenu, SWT.PUSH );			menuItem.addListener( SWT.Selection, 				new URLListener( 					"http://openfacts.berlios.de/index-en.phtml?title=MLdonkey_G2gui" )			);			menuItem.setText( "FAQ" );				// Help>About			menuItem = new MenuItem( subMenu, SWT.PUSH );			menuItem.addListener( SWT.Selection, new Listener() {				public void handleEvent( Event event ) {						About about = new About( shell );					about.open();				}			} );			menuItem.setText( "About" );	}	