Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Creating a dynamic combo-box

Status
Not open for further replies.

mgp77

Programmer
Nov 25, 2005
52
CA
Hello,

I am in the process of creating a VERY simple instant messaging program and I need some help. What I want to do is have a way of dynamically adding entires to a jComboBox listing users that have connected with the server. I have already written the server and client sides and I am able to connect. What I am looking to have now is when someone connects to the server their login name (which is entered when they connect) is then passed to every other person that has connected with the server and their name is pushed to a jComboBox that is on a form running on each peron's machine. Each user can then select a name from the comboBox to choose who they would like to chat with. Also, if someone disconnects from the server their login name would be removed from everyone's combo box.

If anyone can provide me with some assistance on how to accomplish this or suggest a better way to do this
it would be greatly appreciated.
Thank you
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top