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 > Column Post New Topic   Post A Reply
Aligning individual header values printer friendly version
next newest post | next oldest post
Author Messages
msk38
Unregistered
Edit or delete this message Reply w/Quote
Posted Sunday, November 5, 2006 @ 09:49:53  

Hi, I want to left align the header value for only 1 column. Is this possible?
Admin
Board Owner

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

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 Sunday, November 5, 2006 @ 23:28:54  

Unfortunately you cannot just align column alone, you need to align both column & data.
msk38
Private

Gender: Unspecified
Location:
Registered: Nov 2006
Status: Offline
Posts: 3

Click here to see the profile for msk38 Send email to msk38 Send private message to msk38 Find more posts by msk38 Edit or delete this message Reply w/Quote
Posted Monday, November 6, 2006 @ 01:35:32  

Strange, I am able to align the data, however this does not align the header. Example:

membersDBtable.setCellPropertiesModel(new CellPropertiesModel(){
public int getAlignment(int row, int col){
if(col==0||col==5||col==6||col==8){
return SwingConstants.RIGHT;
}
return super.getAlignment(row,col);
}
});

How do I align the header?

Admin
Board Owner

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

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 Wednesday, November 8, 2006 @ 06:59:46  

Yes, I checked again and it is not aligning the columns.

I am not sure whether everybody might want to sort the column header same way as the data. I need to look into this and provide a way to sort the column headers separately

msk38
Private

Gender: Unspecified
Location:
Registered: Nov 2006
Status: Offline
Posts: 3

Click here to see the profile for msk38 Send email to msk38 Send private message to msk38 Find more posts by msk38 Edit or delete this message Reply w/Quote
Posted Wednesday, November 8, 2006 @ 20:57:58  

Thaks for checking :p
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