craftleft.gif (3002 bytes)QuickTable
Home | API | Tutorial | Download | Support | Contact topblack.gif (108 bytes)


QuickTable User Cp  |  Register  |  Members  |  Search  |  Help
    |- QuickTable Discussion Forums > CellEditor/Renderer Post New Topic   Post A Reply
Table Header Renderer printer friendly version
next oldest post
Author Messages
Garravich
Private

Gender: Unspecified
Location:
Registered: Aug 2009
Status: Offline
Posts: 1

Click here to see the profile for Garravich Send email to Garravich Find more posts by Garravich Edit or delete this message Reply w/Quote
Posted Wednesday, August 19, 2009 @ 08:31:38  

Hay,
I'm trying to associate a new renderer to the table header, but I'm receiving strange results...
Adding my renderer through:
.getTableHeader().setDefaultRenderer(new SortableHeaderRenderer());
is never really rendered
with:
getTable().getTableHeader().setDefaultRenderer(new SortableHeaderRenderer());
it's rendered just once for the last column header instead then for every column, and I'm not really able to render it.

Anyone knows of a way to add a new renderer to the table header?

Admin
Board Owner

Gender: Unspecified
Location:
Registered: Jul 2003
Status: Offline
Posts: 287

Click here to see the profile for Admin Send email to Admin Send private message to Admin Find more posts by Admin Edit or delete this message Reply w/Quote
Posted Tuesday, August 25, 2009 @ 18:14:33  

after refresh(), iterate through each column and set myColumn.setHeaderRenderer(yourRenderer);
Post New Topic   Post A Reply Jump to:
Contact Us | QuickTable - A Java DBGrid | Privacy Policy All times are GMT -5 Hours.
Welcome to QuickTable Forums, Guest!  
Login
Username :
Password :
In order to fully utilize the abilities of this board, you are required to register as a member. Registration is free, and allows you to do lots of things including turning on or off certain features of this board. Register now!
Powered by CuteCast v2.0 BETA 2
Copyright © 2001-2003 ArtsCore Studios