mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-09-25 10:01:08 +00:00
#811 Export ActionScript fail fixed
Creating buttons simplified (common code lines moved to function)
This commit is contained in:
@@ -1,16 +1,16 @@
|
||||
/*
|
||||
* Copyright (C) 2010-2015 JPEXS
|
||||
*
|
||||
*
|
||||
* This program is free software: you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
@@ -32,7 +32,7 @@ public class LinkLabel extends JLabel {
|
||||
* The normal text set by the user.
|
||||
*/
|
||||
private String text;
|
||||
|
||||
|
||||
private String url;
|
||||
|
||||
/**
|
||||
@@ -40,16 +40,16 @@ public class LinkLabel extends JLabel {
|
||||
*
|
||||
* @param text
|
||||
*/
|
||||
public LinkLabel(String text,String url) {
|
||||
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);
|
||||
this(text, text);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user