1

I'm trying to render a png image from JTable and using headless mode. JTable's main area is rendered. But JTableHeader area can't rendered.And when I call JTableHeader#getPreferedSize(), JVM is crashed by getting theme for rendering.

Has anyone resolved this issue?

Heisenbug
  • 38,762
  • 28
  • 132
  • 190
  • Try the suggestions on [Why does the JTable header not appear in the image?](http://stackoverflow.com/questions/7369814/why-does-the-jtable-header-not-appear-in-the-image) – Andrew Thompson Nov 09 '11 at 09:21
  • I got it! I set Look and Feel to UIManager.getCrossPlatformLookAndFeelClassName(). Then the issue is solved! – Hiroki Kondo Nov 09 '11 at 09:47
  • Thank you,Andrew. Your suggestion is what I needed. The link set Look And Feel to Nimbas. I have to set it! – Hiroki Kondo Nov 09 '11 at 09:50

0 Answers0