• Post Reply Bookmark Topic Watch Topic
  • New Topic

Jtable cell displaying Japanese chars misbehave

 
Amit Tiwary
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
Chantal Ackermann
Ranch Hand
Posts: 508
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!