Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Painting a Graphic in a JTable Column Header

 
Tommy Greenberg
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

I am trying to paint a graphic in the header of a column. The graphic paints but is not displayed. What I try to do is draw a graphic in a JLabel and display the label but this does not work. Can someone please look at this code and let me know where I went wrong?










These should be all the classes need, you just need to stick the table in JFrame and your good to go.

Thanks
 
Tommy Greenberg
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The package "walgreens.tables.functions" in FunctionColumnModel should be
"package tables.functions"

Change that and you should be good to go.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic