Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how do i automatically select a jTable cells' data for editing

Status
Not open for further replies.

excession

Programmer
Sep 22, 2004
111
GB
when a user clicks on a cell in a jTable, how do you automatically select the data so that it can be edited? At the moment, when a cell is selected the cursor is placed at the end of the data string which mean the user has to delete the current contents before entering new data, I want to be able to have the data ready selected so the user can just type the new data.

Thanks in advance
 
Please post non-J2EE Java questions in forum269 .

--------------------------------------------------
Free Database Connection Pooling Software
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top