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
ComboBox cell + sorted hashtable printer friendly version
next newest post | next oldest post
Author Messages
newToThis
Private

Gender: Unspecified
Location:
Registered: Jul 2005
Status: Offline
Posts: 2

Click here to see the profile for newToThis Send email to newToThis Send private message to newToThis Find more posts by newToThis Edit or delete this message Reply w/Quote
Posted Tuesday, December 6, 2005 @ 18:00:57  

Hi,
I associate a combobox column with a hashtable that contains sorted values. Also, the key and value is the same for each entry in the hashtable i.e. the database entry and the combo box display entry is the same.
When I check on the applet, the entries in the combobox are no longer sorted alphabetically. Why is that? And how do I solve it?
Thanks.
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 Tuesday, December 6, 2005 @ 21:15:12  

Please use the following method and specify the sort order

Code:

public void setCellComponent(Column c,
int cellType,
java.util.Hashtable cellValueToDisplayHash,
java.lang.Object[] keysSortOrder,
boolean addClearOption)

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