absolutePanel_2.add(image_3,15,15);
image_3.setAltText("1");
image_3.addClickListener(new ClickListener() {
public void onClick(Widget sender){
textBox.setText( textBox.getText()+((Image) sender).getAltText());
}
});
Now I have focus only in textBox.If I need to add text in another textBox named textBox_1 How can I code that
If I coded like this at one time both textboxes are in focus at a time means they are adding text at a time
Image image_3 = new Image("Images/1.png");
absolutePanel_2.add(image_3,15,15);
image_3.setAltText("1");
image_3.addClickListener(new ClickListener() {
public void onClick(Widget sender){
textBox.setText( textBox.getText()+((Image) sender).getAltText());
textBox_1.setText( textBox.getText()+((Image) sender).getAltText());
}
});
How can I solve this in gwt??
--
with best regards,
Amrutha
--
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-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
No comments:
Post a Comment