private void createSysTrayIcon()
	{
		sysTrayIconVisible=true;
		//Check the SystemTray is supported
		if (!SystemTray.isSupported()) {
			log("SystemTray is not supported."); //$NON-NLS-1$
			return;
		}

		try {
			UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
		} catch (Exception e1) {
			e1.printStackTrace();
		}

		popup = new PopupMenu();
		trayIcon = new TrayIcon( iconSystrayOffline ); //$NON-NLS-1$

		trayIcon.setImageAutoSize(true);
		final SystemTray tray = SystemTray.getSystemTray();

		// Create a pop-up menu components
		showMain = new MenuItem(Messages.MainWin_7);
		hideMain = new MenuItem(Messages.MainWin_8);
		exitApp  = new MenuItem(Messages.MainWin_19);

		showMain.addActionListener(new ActionListener() {
			@Override
			public void actionPerformed(ActionEvent e) {
				Display.getDefault().syncExec( new Runnable(){

					public void run()
					{
						showFromTray();
					}
				} );
			}

		});

		hideMain.addActionListener(new ActionListener() {
			@Override
			public void actionPerformed(ActionEvent e) {
				Display.getDefault().syncExec( new Runnable(){

					public void run()
					{
						hideToTray();
					}
				} );
			}
		});

		exitApp.addActionListener(new ActionListener() {
			@Override
			public void actionPerformed(ActionEvent e) {
				Display.getDefault().asyncExec( new Runnable(){

					public void run()
					{
						shutDownApp();
					}
				} );
			}
		});		
		
		trayIcon.setPopupMenu(popup);

		try {
			tray.add(trayIcon);
		} catch (AWTException e) {
			log("TrayIcon could not be added."); //$NON-NLS-1$
		}

	}