wood burning stoves 2.0*
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 Murach's Java Servlets and JSP this week in the Servlets 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.
 
Don't get me started about those stupid light bulbs.
 
subject: Painting a Graphic in a JTable Column Header
 
Similar Threads
Printing invisible JTable containing JTables - problem
JTable Columns
JTable
Sorting the Rows in a JTable Component Based on a Column
Printing invicible JTable with Column removed - JTable.PrintMode.FIT_WIDTH problem