Fix url links in uicontrols 20/16120/1
Anais AUBERT [Tue, 10 Feb 2015 10:25:08 +0000 (11:25 +0100)]
Test: test_run("gui","bug_5216")

Change-Id: I4fa9e0fff4f3112f8f090b406bfe2dc734bb6f93

scilab/modules/gui/src/java/org/scilab/modules/gui/bridge/label/SwingScilabLabel.java

index 216f8ea..b2223ea 100644 (file)
@@ -378,6 +378,12 @@ public class SwingScilabLabel extends JScrollPane implements SwingViewObject, Si
                 return;
             }
 
+            if (labelText.startsWith("<a href") && labelText.endsWith("</a>")) {
+                changeLabelType(LabelStyle.HTML);
+                ((JEditorPane) label).setText(labelText);
+                return;
+            }
+
             if (labelText.startsWith("$") && labelText.endsWith("$")) {
                 boolean latex = ScilabSpecialTextUtilities.setText(new JLabel(), labelText);