aspose file tools*
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 | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
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://aspose.com/file-tools
 
subject: Painting a Graphic in a JTable Column Header
 
Similar Threads
JTable
JTable Columns
Sorting the Rows in a JTable Component Based on a Column
Printing invisible JTable containing JTables - problem
Printing invicible JTable with Column removed - JTable.PrintMode.FIT_WIDTH problem