This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Painting a Graphic in a JTable Column Header  RSS feed

 
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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!