Cursor cursorFromIcon(SysIcon icon,HotSpotPos spot){
        Cursor cur = null;
        Toolkit tk = Toolkit.getDefaultToolkit();
        try{
        if(icon.Icon != null){
        Image img = icon.Icon.getImage();
        Point hotSpot = spot.getPoint(img,tk);
        String name = icon.toString()+count;
        cur = tk.createCustomCursor(img,hotSpot,name);
        }
        } catch (IndexOutOfBoundsException e){
            log.print(LogType.Error,e);
        } catch (HeadlessException e){
            log.print(LogType.Error,e);
        } catch (NullPointerException e){
            log.print(LogType.Error,e);
        } finally{
            if(cur==null) cur = Cursor.getDefaultCursor();
            count++;
            return cur;
        }
    }