Hello friends,

try this:

ClickHandler clickHandler = new ClickHandler() {

            @Override
            public void onClick(ClickEvent event) {
                com.google.gwt.user.client.ui.HTMLTable.Cell cell =
flexTable.getCellForEvent(event);
                Window.alert("Row Index " + cell.getRowIndex());
            }
        };

        Button yourButton1 = new Button("your button 1");
        yourButton1.addClickHandler(clickHandler);
        flexTable.setWidget(0, 0, yourButton1);

        Button yourButton2 = new Button("your button 2");
        yourButton2.addClickHandler(clickHandler);
        flexTable.setWidget(1, 0, yourButton2);

        Button yourButton3 = new Button("your button 3");
        yourButton3.addClickHandler(clickHandler);
        flexTable.setWidget(2, 0, yourButton3);

        Button yourButton4 = new Button("your button 4");
        yourButton4.addClickHandler(clickHandler);
        flexTable.setWidget(3, 0, yourButton4);


-- 
Professor Vagner

O PLANETA É O MEU PAÍS, E A CIÊNCIA É A MINHA RELIGIÃO ! INDO AO INFINITO E
ALÉM... !!!!!!

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to