public TrayIconBasic() {
        if (!SystemTray.isSupported()) {
            // Go directory to the task;
            return;
        }
 
        //Image icon = Toolkit.getDefaultToolkit().getImage("");        
        Image icon = createIcon("/Images/fb.png", "NSYNC File Sharing");
        if (icon == null) {
            // Go directory to the task;
            return;
        }
 
        // create the trayIcon itself.
        final TrayIcon trayIcon = new TrayIcon(icon);
        //final TrayIcon trayIcon2 = new TrayIcon(icon, "Ok", new JPopupMenu());
 
        // access the system tray. If not supported 
        // or if notification area is not present (Ubuntu)  
        // a NotSupportedException exception is trown;
 
        final SystemTray tray = SystemTray.getSystemTray();
 
        // Create popup menu
        PopupMenu popup = new PopupMenu();
        MenuItem exit = new MenuItem("Exit");
 
        exit.addActionListener(new ActionListener() {
            public void actionPerformed(ActionEvent e) {
                // Do some cleanup
                tray.remove(trayIcon);
                System.exit(0);
            }
        });
 
        popup.add(exit);
 
         
        // Add tooltip and menu to trayicon
        trayIcon.setToolTip("NSYNC");
        trayIcon.setPopupMenu(popup);
 
        // Add the trayIcon to system tray/notification
        // area
 
        try {
            tray.add(trayIcon);
        } catch (AWTException e) {
            System.out.println("Could not load tray icon !");
        }        
         
        // Just to show how to add an alert/error message
        trayIcon.displayMessage("Alert", "NSYNC Started!!!", 
            TrayIcon.MessageType.INFO);        
    }