Link a buddy list into a JTree

I want to load a list of user into a JTree. Would hashMAP be suitable?
The scanario is an instant messenger. I have a method that reads the profile of user, that then I can pass that list to a certain compont. Would I be able to write a Hashmap to link the buddy list in the JTree?
Does anyone have some example of this in use? Maybe something similar
Thanks Dilip

You need a one-to-many mapping so you can use a HashMap where the values are Lists.
I'm not sure what you are asking about JTree, though.

Similar Messages

  • Ideas for a "buddy list"

    hi i am trying to design and create a buddy list for my instant messenger. i have created a Jtree with online and offline has the child nodes.
    i then going to create a vector list stored in a txt file with users names, and i will load that list in a jtree..
    the problem im having is how can i load data from the vector list into the jtree? And most importantly how can the Jtree autmaticly updates itself when a user is offline/online?
    BTW i have a sMYSQL erver that knows when a user is offline/online..
    any suggetsions?

    > i read about mvc but i dont see it helping me in this situation.
    With more experience, you'll hopefully learn the relevance.
    > i read about tree listeners and thats more
    relivent than mvc patterns.
    I don't agree that it's "more" relevant at all. The view listens to the model in this case, which a JTree does (it listens to the TreeModel).
    > i added tree listeners to
    my program and insterted this code below...
    I don't see that there's a need to add any tree listeners in your case. Update the model, and the view will update itself automagically.
    Please refer to the following:
    How to Use Trees
    Dynamically Changing a Tree
    DynamicTreeDemo
    Good luck!

  • Consolidating buddy lists

    I just started using iChat, and I initially setup my google talk acct. in iChat. When I went to add buddies, a new AIM list was created as a separate window, outside my Jabber list. I am wondering, if possible, how to consolidate all my buddy lists into one Jabber list, and how to add all buddies into the one list.
    Thank you.

    http://www.ksuther.com/chax/

  • Saving buddy lists?

    I want to switch my screen name, as well as use .Mac for iChat, but I have overe 400 buddies and I don't want to spend the time retyping my ENTIRE buddy list. Is there a way to save my buddy list and import it into the new account(s)? thanks!!!

    Hi,
    I tried this in AIM 4.7 on my G4
    I checked the Options to the save and had everything selected and it saved the list and details as a whole.
    The Buddy List appeared in total separated into groups (including Off-line ones).
    I saved mine to the Desktop and then Double Clicked on it and it offered the option to View it (I had AIM open at the time)
    You are talking about Groups as in the third picture here http://www.ralphjohnsuk.dsl.pipex.com/page8.html ?
    You are not trying to amalgamate several iChat Screen name Buddy Lists into one Buddy List ?
    8:21 PM Tuesday; June 5, 2007

  • Logged into iChat, but buddy list isnt showing up.

    Yesterday night, March 10, I logged onto iChat and my buddy list didn't show up. So i restarted my computer and nothing happened. Still no buddy list. I logged on to AIM and i got my buddy list to load. So is there anything i can do to get my buddy list to load on iChat? I've tried everything i can, yet nothing works. Everyone just appears offline and even the AIM Bots won't load.

    Hi,
    Welcome to the    Discussions
    Before we list everything you have already tried can you list what that actually is please ?
    Have you checked the iChat Block List ?
    Have you changed the setting from what it is to something else and back again to write it to the .plist ?
    Have you tried deleting the .plist
    Have you tried the one where you delete your Screen Name from the iChat Accounts section and then re-add it ?
    8:46 PM Wednesday; March 11, 2009

  • Duplicate entries in iChat AIM Buddy List

    Just got a new Mini, set it up and opened iChat - for some reason all of the Buddy entries in my Buddy List are listed twice.  If I try deleting one of the entres it deletes both; logging directly into AIM has each listing presented only once.  How do/can I fix this and get the list properly displayed?

    Hi,
    I use iChat 6 with separated Buddy Lists (See the iChat Menu > Preferences > General section)
    This is because I have several Buddy lists that Login to AIM and I did not want some Buddies being Duplicated where I have them in different lists.
    Having said that I just linked them and they did not seem to be duplicated.
    I have heard of people getting this Doppelganger type thing if they have linked either Facebook or GoogleTalk chat accounts to AIM Buddies in which case they seem to be "reflected" back via Google or Facebook to iChat if you list your Facebook/Google account as well as your AIM one.
    It may also pay to check your Address Book if your are seeing people via their "real names' as shown in the Address Book.
    11:07 PM      Tuesday; December 27, 2011
    Please, if posting Logs, do not post any Log info after the line "Binary Images for iChat"
      iMac 2.5Ghz 5i 2011 (Lion 10.7.2)
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro 2Gb (Snow Leopard 10.6.8)
     Mac OS X (10.6.8),
    "Limit the Logs to the Bits above Binary Images."  No, Seriously

  • Exporting buddy list

    Got my daughter a new (used G5). Would like to transfer her iChat buddy list from my G5 to her G5. I have a firewire. There are several i chat plist which do I drag or is there another route?
    Thanks
    Dave

    Hi,
    To be clear, the Screen Names are kept on the AIM server.
    The links to The Address Book that makes marybuddylike into Aunt Mary id done by the iChat App consulting with the Address Book and then Displaying the name that way.
    You can log in with your Screen Name with any AIM based Client (App) on any computer and see the Buddy List in it's basic form.
    10:09 PM Sunday; April 12, 2009

  • Idea for an alternative buddy list-

    i think it would be cool if instead of names, ichat gave you an option where it would only display your buddie's icons (and the name would appear when your mouse hovered over the icon). you could have the ability to increase or decrease sizes, so your significant other's icon could be at the top of the window, a full two-square-inches; while eight or however many people you don't know as well could occupy a line beneath it.
    if you could arrange and resize the icons, i think that would be really handy; as it would allow you to have the same information in a less cluttered way.
    i find it frustrating both that i have to display everyone- even if they are off; and that i get multiple copies of the same person if they have two screen names.

    Hi Jordon,
    I currently have 179 Buddies in my list.
    The largest group is one of 67 for new testers that I keep for a while when they test with me.
    Even if I keep it showing On-Line Buddies (See Defcom's instructions) like I do I still can't get all-oline Buddies on the screen.
    However your suggestions do seem to have some merit. I could also see theat a Pop-up Buddy icon might suit some people, such as top of the Buddy list near yuo own Buddy pic and linking arrows when Chatting with possibly a small icon to show type.
    At present it is not possible to have the list apart in some form of order and short of redoing people's "Real" names their is no way of changing this (Although combos of doing one and then another will produce Alphbetical Availablity). I could see that people would also want the abiliy to order the list to their own spefications or just drag them into the order they want.
    I could see that some would even want the Buddy List to Display Columns.
    Feedback is certainly the place to go with this.
    Ralph

  • Ichat buddy list will not open.

    I have a brand new macbook and have used ichat successfully. Today my buddy list will not load when i open the application. to the best of my knowledge, my buddylist is not set to hide or anything. I restarted my computer, and turned it off, but the problem continues.
    So the application appears to be open on my top menu bar... but not buddy list? help?

    You need this FAQ http://discussions.apple.com/thread.jspa?threadID=1486891
    For this you needs at least your Install Disk and a download of the Combo Version of the last OS Level Update you did.
    You may need Pacifist but the FAQ has a Link.
    8:27 PM Monday; July 7, 2008

  • How do I add a googlemail user onto my buddy list on my ichat?

    I bought my macbook a few weeks ago and, while I adore it to bits so far, I seem to have a bit of a problem with ichat (version 4.0.6). I tried to add my friend who uses a googlemail account (with jabber) onto my buddy list in ichat but, according to ichat, it seems that it only accepts mac.com, aim and mobile me account holders. So that was no good so I tried it on adium and I got it ok but for some reason, I cant see him online nor can he see me online. I logged out of adium and logged back into ichat and there it was his username there with googlemail.com but still cant reach him even though I said a couple of lines to check. Im stuck! Any idea how to add googlemail users onto buddy list on ichat?

    http://www.google.com/support/talk/bin/answer.py?answer=24076
    http://mail.google.com/videochat

  • How to get the iChat Buddy List to automatically appear on the Desktop

    On my friends computer iChat is set to launch whenever he logs into his account, but the Buddy List does not appear on his Desktop. So when I see him online there is no green video camera mark next to his name.
    If I want to do a screen share with him, I have to ask him to go to the iChat icon towards the right side of the Menubar (the round 'speech ballon') and click on Show AIM Buddy List at the bottom. Once he has the Buddy List on his Desktop, I can screen share with him.
    Surely there must be a way for the Buddy List to always appear on the Desktop when logging into his computer... Can anyone help out?

    Hi,
    Interesting one.
    If I were telling you how to create this it would be like this:-
    1) Go to System Preferences > Accounts > Your account and enter iChat in the Login items. (Makes iChat launch at Computer Start Up)
    2) to Hide the Window (Buddy List(s) ) at Start Up click the Red Button to close the Window/Buddy List before Quitting.
    This will cause the next Start Up to not show th Buddy List.
    How you make the Buddy List appear after that depends on how you bring it in to View.
    NOTES:
    Some Windows in iChat from Buddy List to the Preferences to th Actual Chat Windows will appear in the places you left them for the most part.
    The Exceptions are Incoming Invites.
    This means the Buddy List will be were you left it, your Outgoing Invite/Preview whilst waiting for Connection will always be where the last outgoing Video Chat window was.
    Using the Red Button on a Open Chat Window will end the Chat (All types).
    However doing it to a Buddy List only Hides it.
    In addition to this using the Item (or the Keystrokes) from the Window Menu of iChat for a Buddy list when it is On view will Hide it (or Bring it back if Hidden)
    The Show AIM option in the Menu Bar icon's drop down is a two edge thing as it shows All Buddies (Available ones) from all AIM Buddy lists if you have more than one (Apple names are also AIM Names in this case).
    Does he want to change this Behaviour ?
    He would be better off using the iChat Window menu (or Keystrokes) after he has clicked the icon in the Dock to bring the app to the Front so he can access the Menu bar with ichat in it.
    He could also click and Hold the icon for iChat in the DOCK and select the Account Name there. This, if I remember correctly, will have the same effect as presenting the Buddy List from the Menu Bar icon (it will be hidden at Next Start Up)
    9:58 PM Saturday; November 13, 2010
    Please, if posting Logs, do not post any Log info after the line "Binary Images for iChat"

  • How can I see my jabber buddy list as a default and not a new message window on my message app??

    I recently got my OS reinstalled and since then I had a multitude of issues.
    1) my texts kept showing up on my macbook pro so I took my cell number off the preferences on messages on macbook.  Can I still have people facetime me using my cell phone number?
    2) I do see my jabber buddy list when I click on the message center as a default.  I keep getting the new message window, can i set a default that when i click on it I see who is online vs. having to go to windows and select buddy list all the time??
    3) what is bonjour and why would i want to use it?

    Hi,
    Re 1)
    The settings for Messages > iMessages are separate from the FaceTime ones on both Mac and iOS devices.
    Re 2)
    If you have a Jabber (Google or Facebook Chats included) ID in Messages > Preferences > Accounts you can go to the Window Menu and display them.
    By default they are a combined list (Any AIM, Jabber, Yahoo or Bonjour account that is logged in)
    In the Preference > General section you can untick the item that gathers them into one list to show them separately.
    They also appear in the Window Menu separately with their open CMD + # keystrokes.
    Once you have them On show quit the app that way.
    It will "Remember" that they were on Show the next time you open the app.
    Re 3)
    Bonjour is a process on the Mac that "sees" all other Macs on your LAN and shows them in the Side bar of the Finder window as "automatic" Shares.
    In iChat and Messages it is an included account that cannot be deleted
    If Enabled it can have it's own Buddy List (see 2) )
    It shows the Names of the peopel singed in on the other Macs on your LAN that are also using iChat or Messages with the Bonjour Account Enabled.
    The name is taken from the My Card in the Address Book or Contacts app.
    The My Card should have the Mac User's details (you on Your computer when Logged in) and a head and Shoulders icon.
    I have three computers
    One is running iChat 4.x.x and on that machine (running Leopard) the My Card calls me Ralph G4 as it is running on G4 tower.
    My Laptop has me as Ralph MacBook Pro
    This iMac I am posting from has the My Card of Ralph Johns
    On this computer if I have iChat running on the other I see Ralph G4 and Ralph MacBook Pro as "Buddies"
    It can do everything that the AIM and Jabber logins can do.
    Text Chat, Audio Only Chat, Video Chat, Screen Sharing, File Transfers etc.
    10:21 pm      Saturday; February 15, 2014
      iMac 2.5Ghz 5i 2011 (Mavericks 10.9)
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro 2Gb (Snow Leopard 10.6.8)
     Mac OS X (10.6.8),
     Couple of iPhones and an iPad

  • How display attachment links in a list view in SharePoint 2013?

    Hi all,
    I'm looking for a way to display attachment links in a list in SharePoint 2013. There are few resources online to achieve this in SP2010 and SP07. Your help is much appreciated.
    Thank you.

    Hi Ram Sampath:
    You can use Event Receiver and create another list(ListA) to record your attachment link.
    Maybe your process is:
    Users add list items and attachments
    List event will be fired
    Use Event Receiver to get attachment url and then Write into ListA
    You also can refer to the following web site:
    https://social.technet.microsoft.com/Forums/sharepoint/en-US/b693eb84-b846-4f0f-93c1-276cf931c746/how-to-get-attachment-in-itemadded-event-receiver
    http://stackoverflow.com/questions/19077770/how-to-retrieve-list-item-attachments-with-sharepoint-2013-event-receiver-in-cor

  • How to include a favorit list into a role?

    We need to assign a role to some users so that the users can have
    a favorit list that is included in the role.
    It's easy to include iViews into a role. But I have tried very hard to include
    a favorit list into a role without success.
    Points guaranteed. Thx.

    <u>Portal Favorites is an iView.</u> Open a role in which you want to add Portal Favorites. Then goto <i>PCD->Containt Provided by SAP->End User Containt->Standard Portal Users->iView->com.sap.km.iView.</i> Right click Portal Favorites iview and then Click "Add iView to Role" -> Delta link.
    Regards,
    Nitin

  • User not showing in Buddy List 10.9.4 Server/3.1.2

    I have added a new user to our server, but for some reason they are not showing up in others' Buddy Lists to be able to message them on a local network. If I enable Bonjour they show there, and they are able to access the file server just fine. To make the situation more confusing, looking into the logs I see them appear to be connecting to the chat server correctly. Any ideas as to what may be wrong?
    Aug 21 05:47:08 mavserve.local jabberd/c2s[3995]: Authentication succeeded, mech: DIGEST-MD5 client IP: ::ffff:192.168.1.46 client port: 49190 username: krislg
    Aug 21 05:47:08 mavserve.local jabberd/c2s[3995]: int od_auth_check_service_membership(const char *, const char *): checking user "krislg" access for service "chat"
    Aug 21 05:47:08 mavserve.local jabberd/c2s[3995]: int od_auth_check_service_membership(const char *, const char *): mbr_check_service_membership returned 0
    Aug 21 05:47:08 mavserve.local jabberd/c2s[3995]: int od_auth_check_service_membership(const char *, const char *): user "krislg" is authorized to access service "chat"
    Aug 21 05:47:08 mavserve.local jabberd/c2s[3995]: [10] DIGEST-MD5 authentication succeeded: [email protected] ::ffff:192.168.1.46:49190 TLS
    Aug 21 05:47:08 mavserve.local jabberd/c2s[3995]: [10] bound: jid=[email protected]/kris's iMac
    Aug 21 05:47:08 mavserve.local jabberd/sm[3993]: session started: jid=[email protected]/kris's iMac
    Thanks in advance!

    I was able to message the user directly [email protected] and he received it fine, apparently he is just invisible in the Buddies window. Stumped.

Maybe you are looking for