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
editCellAt and transferFocus doesn't work printer friendly version
next newest post | next oldest post
Author Messages
dfilocamo
Unregistered
Edit or delete this message Reply w/Quote
Posted Monday, September 26, 2005 @ 03:44:37  

Hi!
I have a JButton used to add a new field in a simple table managed by quicktable, the code of the action of the button is:

DBTable.insertEmptyRecord();
DBTable.editCellAt(DBTable.getRowCount()-1,0);
DBTable.getTable().transferFocus();

It insert the record but doesn't edit the cell and doesn't transfer the focus...I also try the last 2 command in another button but they don't work...

how can I solve this problem?

thanks

dem

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, September 27, 2005 @ 06:15:02  

Please use grabFocus() instead of transferFocus()

dBTable1.getTable().grabFocus();

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