Is there a way to add image or icon inside a GWT TextBox widget?
EDIT: The image is required to have a ClickHandler.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If you are only interested in visually adding an icon , you can add it using css such as :
UPDATE :
If you need to add events to image, you can bind an image and a textbox in a horizontal panel as in @Sandro Munda’s answer. Also another method is to use an absolute panel and css to make the image and the textbox overlap as such :