问题
This should be simple, but somehow I can't find a way to create simple hyperlink in GWT. Basically, I want to load another page when users clicks on something.
Hyperlink seems to point to internal GWT application state only. I guess I could put the link in HTML code itself, but how do I create it in Java?
回答1:
Anchor
    this.add(new Anchor("www.stackoverflow.com"));
回答2:
You're looking for Anchor.
来源:https://stackoverflow.com/questions/1767572/simple-hyperlink-in-gwt