Help coderanch get a
new server
by contributing to the fundraiser
  • 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
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Carey Brown
  • Mikalai Zaikin
Bartenders:
  • Lou Hamers
  • Piet Souris
  • Frits Walraven

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