How to I make a hyperlink that functions as a button? Or how do I make a button that looks like a hyperlink?
As of GWT 1.5, there is an Anchor widget that should do what you want.
One easy way is to use the Label class. Just create a new label and add a ClickHandler to it. You can then style it however you want using CSS:
Label lbl = new Label("Hello");
lbl.addClickHandler(...);
lbl.setStyleName("hyperlink_style_label");
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With