Added cut() and copy() methods to override JTextPane's methods of same name.
This commit is contained in:
parent
149eecc4fb
commit
fbb6245fdb
1 changed files with 9 additions and 0 deletions
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue