private void createMenuBar() {
		
		fileMenu = new JMenu(settings.getLanguage().getLabel("menu_file")); 
		fileConnectMenuItem = new JMenuItem(settings.getLanguage().getLabel("menu_file_connect"));
		fileDisconnectMenuItem = new JMenuItem(settings.getLanguage().getLabel("menu_file_disconnect"));
		fileSettingsMenuItem = new JMenuItem(settings.getLanguage().getLabel("menu_file_settings"));
		fileQuitMenuItem = new JMenuItem(settings.getLanguage().getLabel("menu_file_quit"));
		fileMenu.add(fileConnectMenuItem);
		fileMenu.add(fileDisconnectMenuItem);
		fileMenu.add(fileSettingsMenuItem);
		fileMenu.add(fileQuitMenuItem);
		
		fileDisconnectMenuItem.setVisible(false);
		
		helpMenu = new JMenu(settings.getLanguage().getLabel("menu_help"));
		helpAbout = new JMenuItem(settings.getLanguage().getLabel("menu_help_about"));
		helpMenu.add(helpAbout);
		
		JMenuBar menuBar = new JMenuBar();
		menuBar.add(fileMenu);
		menuBar.add(helpMenu);
		
		setJMenuBar(menuBar);
	
		fileConnectMenuItem.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent arg0) {
				for(int k=0; k<chatGuiListener.size(); ++k) {
					chatGuiListener.get(k).goOnline();
				}
			}
		});		

		fileDisconnectMenuItem.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent arg0) {
				setInputsEnabled(false);
				fileConnectMenuItem.setVisible(true);
				fileDisconnectMenuItem.setVisible(false);
				for(int k=0; k<chatGuiListener.size(); ++k) {
					chatGuiListener.get(k).goOffline();
				}				
			}
		});
	
		fileSettingsMenuItem.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent arg0) {
				for(int k=0; k<chatGuiListener.size(); ++k) {
					chatGuiListener.get(k).openSettingsView();
				}
			}
		});
		
		fileQuitMenuItem.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent arg0) {
				for(int k=0; k<chatGuiListener.size(); ++k) {
					chatGuiListener.get(k).quit();
				}
			}
		});
		
		helpAbout.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent arg0) {
				for(int k=0; k<chatGuiListener.size(); ++k) {
					chatGuiListener.get(k).openAboutView();
				}				
			}
		});			
	}