Hello

I have a SimplePanel with an Label. On my label I put a
DoubleCLickHandler. On doubleClick event, I want to change the content
of my panel.
On firefox/ie6, it's work fine
On IE8, it's work... but all my content become selected!!!


public class PageTest extends Composite {
        SimplePanel sp = new SimplePanel();
        Label lbl = new Label("label");
        DoubleClickHandler dch = new DoubleClickHandler() {

                @Override
                public void onDoubleClick(DoubleClickEvent event) {
                        sp.remove(lbl);
                        Grid gd = new Grid(20, 20);
                        for (int i = 0 ; i < 20 ; i++)
                                for (int j = 0 ; j < 20 ; j ++)
                                        gd.setText(i, j, "dest"+i+"-"+j);
                        sp.setWidget(gd);
                }
        };
        public PageTest() {
                lbl.addDoubleClickHandler(dch);
                sp.add(lbl);
                initWidget(sp);
        }
}


Could you help me???


Thanks

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" 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/google-web-toolkit?hl=en.

Reply via email to