• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Jtable cell displaying Japanese chars misbehave

 
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
Ranch Hand
Posts: 508
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
reply
    Bookmark Topic Watch Topic
  • New Topic