mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-09-25 09:50:51 +00:00
utm parameters in links to homepage
czech translation improved
This commit is contained in:
@@ -32,19 +32,25 @@ public class LinkLabel extends JLabel {
|
||||
* The normal text set by the user.
|
||||
*/
|
||||
private String text;
|
||||
|
||||
private String url;
|
||||
|
||||
/**
|
||||
* Creates a new LinkLabel with the given text.
|
||||
*
|
||||
* @param text
|
||||
*/
|
||||
public LinkLabel(String text) {
|
||||
public LinkLabel(String text,String url) {
|
||||
super(text);
|
||||
|
||||
this.url = url;
|
||||
setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));
|
||||
|
||||
enableEvents(MouseEvent.MOUSE_EVENT_MASK);
|
||||
}
|
||||
|
||||
public LinkLabel(String text) {
|
||||
this(text,text);
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the text of the label.
|
||||
@@ -80,6 +86,6 @@ public class LinkLabel extends JLabel {
|
||||
}
|
||||
|
||||
protected void clicked() {
|
||||
View.navigateUrl(getNormalText());
|
||||
View.navigateUrl(url);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user