how could more than 1 user be listed having swing as the client
Joined: Feb 27, 2005
hello In my chat application made in java i have a package in which my servlets and swing classes reside when i execute them my login window opens When authentication is done a main window opens in which the currently online users name with the complete list of current online users gets displayed in the window
My question is:: 1. Suppose a single user gets online his name is displayed but when another user logs in a window opens but it does not show the other online users how to make all names appear in the same window
2. The whole list of online users should be there with the signed in user how to make it happen
please do reply Regards Monarch
Joined: Jan 03, 2005
Hi Monarch, I think you are showing the user name in some text area or text pane which eventually resides with in some Panel(JPanel). So if you want to display user name dynamically you need to update the panel using panel.updateUI().Or you need to update the text component using same method.