Re-apply doc after Font setting 69/14269/1
Vincent COUVERT [Tue, 1 Apr 2014 10:24:13 +0000 (12:24 +0200)]
Change-Id: Iaed8d54cfbbef9be3181c200e37ca0055561104d

scilab/modules/gui/src/java/org/scilab/modules/gui/bridge/editbox/SwingScilabEditBox.java

index 184ae88..d80325c 100644 (file)
@@ -459,6 +459,7 @@ public class SwingScilabEditBox extends JScrollPane implements SwingViewObject,
             StyleConstants.setFontSize(docAttributes, font.getSize());
             StyleConstants.setBold(docAttributes, font.isBold());
             StyleConstants.setItalic(docAttributes, font.isItalic());
+            doc.setParagraphAttributes(0, doc.getLength() - 1, docAttributes, true);
         }
     }
 
@@ -557,7 +558,7 @@ public class SwingScilabEditBox extends JScrollPane implements SwingViewObject,
                     manager.focusNextComponent();
                 }
             };
-            
+
             AbstractAction validateUserInput = new AbstractAction() {
                 private static final long serialVersionUID = -5286137769378297783L;