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 > Events/Actions Post New Topic   Post A Reply
Cell editing events 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 Monday, July 17, 2006 @ 10:34:22  

Is there is an event triggered when the user is editing a cell? I would like a textbox to show "EDITING" when a cell is being edited.
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 Tuesday, July 18, 2006 @ 09:26:06  

I figured it out:

final Column colElement = dbtComposition.getColumn(0);
final DBTableCellEditor editor = (DBTableCellEditor)colElement.getCellEditor(); //deprecated
final JTextField txtElement1 = (JTextField)editor.getComponent();
txtElement1.addFocusListener(new java.awt.event.FocusAdapter() {
public void focusGained(java.awt.event.FocusEvent evt) {
setHasFocus(true);
}
public void focusLost(java.awt.event.FocusEvent evt) {
setHasFocus(false);
}
});

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