#811 Export ActionScript fail fixed

Creating buttons simplified (common code lines moved to function)
This commit is contained in:
2015-02-21 19:14:01 +01:00
parent 6902b4d716
commit e5f233c32c
7 changed files with 54 additions and 72 deletions
@@ -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);
}
/**