I did a little chat.
in this chat there is a public room where everyone can write.
The user can also chat privately with other users.
in this case opens a window where the only 2 users can chat.
but the user can opens other private window with the other users!
so my problem is this:
if  I write in any open private window, the text is always added to my
last window that I open.
an example:
if I open the private window with Jack, Lucy, Mary and I write in the
window's Jack, the test is added to window's Mary.
also if i write in the window's Lucy , the test is added to window's
Mary.

this is my code:

Panel centerIcon=new Panel();
                centerIcon.setAutoScroll(true);
                centerIcon.setAutoScroll(true);

                  HTML   text=new HTML();
                     centerIcon.add(test);

                     Panel southPanelIcon = new Panel();
                     southPanelIcon.setHeight(60);
                        final TextArea insertTextIcon=new TextArea();
                        insertTextIcon.setVisible(true);
                        insertTextIcon.setSize(390, 30);

                        southPanelIcon.add(insertTextIcon);


                        final Button send=new Button("send");
                        send.addListener(new ButtonListenerAdapter(){
                                public void onClick(Button button, EventObject 
e) {

                                String  textReceiver=insertTextIcon.getText();

                                        text.setHTML(text.getHTML()+"</br> 
Host: "+textReceiver);

                                  }});
.........
.......
 how can I do?
Thanks
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"GWT-Ext Developer Forum" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/gwt-ext?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to