From fbb6245fdb38053a413a2e1a0423ee0f2fe09629 Mon Sep 17 00:00:00 2001 From: eg3p Date: Fri, 20 Jun 2003 15:27:20 +0000 Subject: [PATCH] Added cut() and copy() methods to override JTextPane's methods of same name. --- source/org/thdl/tib/input/DuffPane.java | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/source/org/thdl/tib/input/DuffPane.java b/source/org/thdl/tib/input/DuffPane.java index 04ce61a..cfcc6f6 100644 --- a/source/org/thdl/tib/input/DuffPane.java +++ b/source/org/thdl/tib/input/DuffPane.java @@ -599,6 +599,15 @@ public class DuffPane extends TibetanPane implements FocusListener { return getTibDoc().getTibetanFontSize(); } +/** +* Overrides JTextComponent.setFont(). This method +* calls setRomanAttributeSet(), otherwise DuffPane +* would ignore calls to setFont(). +*/ + public void setFont(Font font) { + setRomanAttributeSet(font.getName(), font.getSize()); + } + /** * Changes the default font and font size for * non-Tibetan (Roman) text entry mode.