• Post Reply Bookmark Topic Watch Topic
  • New Topic

Table Column Headers: what can you put in there?

 
Frank Daly
Ranch Hand
Posts: 148
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
Is it possible to put images into Column headers of a JTable. Failing that, is it possible to rotate text 90 degrees in a column header?
tia
frank
 
deekasha gunwant
Ranch Hand
Posts: 396
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Frank,
Yes it is possible to put Images in JTable Header.
For this u'll have to write a renderer that will extends from JLabel.
here is a small code that does the same thing. u can run it.
just don't forget to replace the image file names with your own.

do get back in case u need any clarification
regards
deeksha


[This message has been edited by deekasha gunwant (edited February 03, 2001).]
 
Frank Daly
Ranch Hand
Posts: 148
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks deeksha
that worked fine.
frank
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!