Added support for multiple keyboards and ability to set the preferences

for size of tibetan font and type and size of roman font.
This commit is contained in:
amontano 2003-08-09 08:00:58 +00:00
parent 8e4b508de8
commit 52cdc17794
8 changed files with 222 additions and 50 deletions

View file

@ -102,5 +102,17 @@ public class DictionaryTable extends JTable
tc.setCellRenderer(normalRenderer);
DictionaryTableModel dtm = (DictionaryTableModel) getModel();
dtm.activateTibetan(activate);
}
}
public void setTibetanFontSize(int size)
{
DuffCellRenderer dcr = (DuffCellRenderer) duffRenderer;
dcr.setTibetanFontSize(size);
}
public void setRomanFont(Font f)
{
AlmostDefaultTableCellRenderer tcr = (AlmostDefaultTableCellRenderer) normalRenderer;
tcr.setFont(f);
}
}