-
Notifications
You must be signed in to change notification settings - Fork 128
LinkLabel
Kotcrab edited this page Jan 28, 2025
·
8 revisions
LinkLabel (source) allows to create label with clickable link. Links can have custom text. By default clicking link will open it in default browser, this can be changed by settings label listener.
//LinkLabel with no custom text, will be just displayed as link
new LinkLabel("https://github.com/kotcrab/viseditor")).row();
//LinkLabel with custom text
new LinkLabel("kotcrab blog", "http://kotcrab.com")).row();
If you want to do something else than opening browser after clicking on label, you can set custom listener:
linkLabel.setListener(new LinkLabelListener() {
@Override
public void clicked (String url) {
//do something here
}
});
See README for VisUI introduction.