Visit my blog! http://jameshambrick.com
SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6 - OCEJPAD 6
How To Ask Questions How To Answer Questions
Visit my blog! http://jameshambrick.com
SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6 - OCEJPAD 6
How To Ask Questions How To Answer Questions
Werner Fletcher wrote:Hi there James! Did you manage to get this working? I'm struggling with the exact same issue! Do you mind telling me what you did please? I'm really desperate for help and this seems to be the only forum with a solution. Thanks!
Visit my blog! http://jameshambrick.com
James Hambrick wrote:
I did get that part of the program working.
When a new user logs in they are added to an arraylist called userArrayList
To send this user list to the new users that have just logged in I made a loop and turned the list into a comma delimited string.
Then the client splits the string and puts it into an array. Then adds the users to the listModel.
The currently logged in users just get a message string that has the new user's name so it can be added to their listModel.
Hope this helps. If you have anymore specific questions just let me know.
Werner Fletcher wrote:
James Hambrick wrote:
I did get that part of the program working.
When a new user logs in they are added to an arraylist called userArrayList
To send this user list to the new users that have just logged in I made a loop and turned the list into a comma delimited string.
Then the client splits the string and puts it into an array. Then adds the users to the listModel.
The currently logged in users just get a message string that has the new user's name so it can be added to their listModel.
Hope this helps. If you have anymore specific questions just let me know.
Hey thanks for replying!
ArrayList!!! You're a freaking genius! All this time I am using a HashTable and it's been tricky to work with. The only thing that I am battling with now is that I need to check the list for duplicates... any idea that would make it easier? I am working on it in the meantime... Thanks again!
Visit my blog! http://jameshambrick.com
Visit my blog! http://jameshambrick.com