summaryrefslogtreecommitdiff
path: root/scripting
diff options
context:
space:
mode:
authorDouglas Mencken <dougmencken@gmail.com>2016-02-29 01:43:36 -0500
committerjan iversen <jani@documentfoundation.org>2016-03-14 09:08:38 +0000
commit60286229fa54b71c67a5d25a7cce59e54b6b8680 (patch)
tree3256f2467742df82b5b8c0197380721a047522ae /scripting
parent894a858ffa656ae3f37ee879fe35d34a8d2f41e5 (diff)
scripting: JDK 1.5 compatibility: don't use java.awt.Font.MONOSPACED
MONOSPACED is defined in java/awt/Font.java as /* @since 1.6 */ static final String MONOSPACED = "Monospaced"; Change-Id: I31847c939387c139971ff55f786773c7ce51448c Reviewed-on: https://gerrit.libreoffice.org/23164 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: jan iversen <jani@documentfoundation.org>
Diffstat (limited to 'scripting')
-rw-r--r--scripting/java/com/sun/star/script/framework/provider/beanshell/PlainSourceView.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripting/java/com/sun/star/script/framework/provider/beanshell/PlainSourceView.java b/scripting/java/com/sun/star/script/framework/provider/beanshell/PlainSourceView.java
index e7d71d3869ee..ec2a56d8c3f1 100644
--- a/scripting/java/com/sun/star/script/framework/provider/beanshell/PlainSourceView.java
+++ b/scripting/java/com/sun/star/script/framework/provider/beanshell/PlainSourceView.java
@@ -137,7 +137,7 @@ public class PlainSourceView extends JScrollPane implements
ta.setColumns(40);
ta.setLineWrap(false);
ta.insert(model.getText(), 0);
- ta.setFont(new Font(Font.MONOSPACED, ta.getFont().getStyle(), ta.getFont().getSize()));
+ ta.setFont(new Font("Monospaced", ta.getFont().getStyle(), ta.getFont().getSize()));
undoManager = new UndoManager();
undoManager.setLimit(noLimit);
ta.getDocument().addUndoableEditListener(new UndoableEditListener(){