dcsimg
How to keep JFrame in Hashtable.
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Allan_Moso
Posted On:   Tuesday, February 17, 2004 12:33 PM

I'm trying to make a chat program that will make new JFrame when a client private messages a new client. The new JFrame will be stored in a Hastable so that if the client messages the same client again it will not make a different JFrame again. The JFrame is stored with the name of the sender client as the key. My problem is that the JFrame doesn't stay in the Hashtable. It disappears once it goes out of scope of where it was called even if the Hashtable where it was stored is a global object. Can someone please tell me if there's a solution to this?

About | Sitemap | Contact