ideas for a "buddy list" ( 3 Views )
-
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?
(pınar, Mexico)
The constructor of the JTree class can take a vector as a parameter. So, just read in the names and put them into the online or offline vectors. Then, just create a JTree from each of the vectors.
When it comes to the status of a user changing it depends on whether you have to ask the server or if it will just notify you. If you have to query the server you would probably want to put a loop in your run method to check the status of each user. If the server notifies you when there is a change you just have to implement a method for the server to notify.
(eda, Saint Pierre and Miquelon)
Related Topics ... (or search in 1.720.883 topics !)
wanting to create a "buddy list" script... (3) i need a list of "natural surroundings" and a list of "types of places" (4) can i fix the witdh of the list ? (<select name="selection" size="4">) (4) how to keep the "hilight" state in a "converted list/nav bar"? (10) list menu w/2nd "add" and "delete" box (7) a buddy of mine, gregman_1, signed up but has not been "approved" yet (2) "hey buddy, can you check on my girlfriend?" (29) riding "buddy" for ride to warped iv (9) motion pro "bead buddy" (17)
copyright © 2007-2031 Pfodere.COM ( 5 Pfoyihuee Online )
|