In a JTable,when I start editing a cell,all the displayed characters in Japanese Font turn to square and as editing is over they r restored? Why? How I fix it?
posted 14 years ago
when you start editing the TableCellEditor takes over the rendering of the cell that is currently edited. So I suppose your TableCellRenderer works fine (which is a JLabel) while you TableCellEditor seems to have problems displaying the font. the TableCellEditor is a JTextField. You might need to write you own TableCellEditor, or to extend the default one and change the font attributes? cheers, Chantal