简体   繁体   中英

display text on hovering mouse over a button in gwt

I am using gwt 2.4. And I am not using uibinder. I have a button which has a background image. when I place mouse on this button it should display a text saying "submit" . The kind of text which says what the button does.

Button is a UIObject and so you can use setTitle method on a Button to set the tooltip.

Or if you want to do something else on mouse over. Just make use of the mouse handlers.

Read Button documentation for more details.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM