Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how could more than 1 user be listed having swing as the client

 
Monarch Bhojani
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Sisir Chanda
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.

Hope you will enjoy this
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic