public Menu()
	{
		// Elements of the bar:
				JMenu menuFile = new JMenu("File");
				add(menuFile);
				JMenu menuHelp = new JMenu("Help");
				add(menuHelp);

				// Elements of File:
				JMenuItem fileConnect = new JMenuItem("Connect");
				fileConnect.addActionListener(new ActionListener()
				{
					@Override
					public void actionPerformed(ActionEvent e)
					{
						int connectToPortInputBox = 0;
						String connectToIPInputBox = (String) JOptionPane.showInputDialog("Insert Your Mate's IP:");
						try
						{
							connectToPortInputBox= Integer.parseInt((String) JOptionPane.showInputDialog("Insert Your Mate's Port:"));
							if(connectToPortInputBox > 65535 || connectToPortInputBox < 49152) sc.chatLogWrite("Plese provide a number greather then 65535 and lesser then 49152");
						}
							catch(NumberFormatException exc)
						{
							sc.chatLogWrite("Attenzione: Inserisci un indirizzo di porta numerico.");
						}
						SimpleChat.getInstance().connect(connectToIPInputBox, connectToPortInputBox);

					}

				});

				fileDisconnect = new JMenuItem("Disconnect");
				fileDisconnect.setEnabled(false);
				fileDisconnect.addActionListener(new ActionListener()
				{

					@Override
					public void actionPerformed(ActionEvent arg0)
					{
						sc.sendSCMessage("01-CLOSE_REQ");
						sc.closeConnection();
					}

				});
				JMenuItem fileExit = new JMenuItem("Exit");
				fileExit.addActionListener(new ActionListener()
				{

					@Override
					public void actionPerformed(ActionEvent arg0)
					{
						sc.closeConnection();
						sc.removeUPnPMapping();
						System.exit(0);
					}

				});
				menuFile.add(fileConnect);
				menuFile.add(fileDisconnect);
				menuFile.add(fileExit);
				// Elements of Help:
				JMenuItem helpHelp = new JMenuItem("Help");
				helpHelp.addActionListener(new ActionListener()
				{
					
					@Override
					public void actionPerformed(ActionEvent arg0)
					{
						new HelpFrame();
					}
				});
				JMenuItem helpAbout = new JMenuItem("About");
				menuHelp.add(helpHelp);
				menuHelp.add(helpAbout);
	}