This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes Painting a Graphic in a JTable Column Header Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Reply Bookmark "Painting a Graphic in a JTable Column Header" Watch "Painting a Graphic in a JTable Column Header" New topic
Author

Painting a Graphic in a JTable Column Header

Tommy Greenberg
Greenhorn

Joined: Jul 30, 2004
Posts: 15
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

Joined: Jul 30, 2004
Posts: 15
The package "walgreens.tables.functions" in FunctionColumnModel should be
"package tables.functions"

Change that and you should be good to go.
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Painting a Graphic in a JTable Column Header
 
Similar Threads
JTable
Printing invicible JTable with Column removed - JTable.PrintMode.FIT_WIDTH problem
Printing invisible JTable containing JTables - problem
Sorting the Rows in a JTable Component Based on a Column
JTable Columns