Two Laptop Bag*
The moose likes Swing / AWT / SWT and the fly likes how could more than 1 user be listed having swing as the client Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "how could more than 1 user be listed having swing as the client" Watch "how could more than 1 user be listed having swing as the client" New topic
Author

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

Monarch Bhojani
Ranch Hand

Joined: Feb 27, 2005
Posts: 46
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

Joined: Jan 03, 2005
Posts: 11
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
 
wood burning stoves
 
subject: how could more than 1 user be listed having swing as the client
 
Similar Threads
How to populate values in window
JavaScript Permission Denied...sometimes
action class gets skipped when opening link via javascript
hwo to use system cursors like the hourglass
Problem in appending multiple names to the textarea