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 > General QuickTable Support/Help Post New Topic   Post A Reply
Using getValueAt() with custom CellComponent printer friendly version
next newest post | next oldest post
Author Messages
converge
Corporal

Gender: Unspecified
Location:
Registered: Apr 2004
Status: Offline
Posts: 28

Click here to see the profile for converge Send email to converge Send private message to converge Find more posts by converge Edit or delete this message Reply w/Quote
Posted Friday, December 7, 2007 @ 15:10:21  

I'm implementing my own custom CellComponent for a specific column, where I modify certain values on-the-fly. However, using getValueAt() returns the original values (from the wrapped JTable). Is there an easy way to retrieve the new display values from the table? I have an inelegant work-around but I was wondering if there was a more obvious solution.
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, December 9, 2007 @ 23:58:42  

Before you call getValueAt(), save the editing by calling

databaseTable = dbTable.getTable();
if(databaseTable.isEditing())
{
databaseTable.editingStopped(new ChangeEvent(databaseTable));
}

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