Search the archives!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
JTable Cell Editing
- From: cvandeso@xxxxxxxx (cvandeso@xxxxxxxx)
- Subject: JTable Cell Editing
- Date: Thu, 30 Sep 1999 10:21:46 +0200
Hi David,
You can use this method in your CellEditor :
/**
* clickCountToStart controls the number of clicks required to start
* editing if the event passed to isCellEditable() or startCellEditing()
is
* a MouseEvent. For example, by default the clickCountToStart for
* a JTextField is set to 2, so in a JTable the user will need to
* double click to begin editing a cell.
* @return the number of clicks needed to start editing
*/
//-------------------------------------------------------------------------
------------------
public int getClickCountToStart() {
//-------------------------------------------------------------------------
------------------
return clickCountToStart;
}
Cheers,
Carlo.
Consulting Engineer.
David Holland <dholland@xxxxxxxxxxxxxxxxx> on 29/09/99 21:36:34
To: advanced-java@xxxxxxxxxxxxxxxx
cc: (bcc: Carlo Van de Sompel/ISD/Anhyp/BE)
Subject: JTable Cell Editing
Does anybody know how to get a cell to be in edit mode ( for a
JTable ) just by selecting it? At present, you have to double click on the
cell to hi-lite what is in the cell for editing. We just want to select
the
cell, not double click it. I am using 1.1.7 (VisualAge version 2.0). Any
help would be greatly appreciated.
(I hope this is the correct forum for this question)
David Holland
D.M.A.
> efa Software Services Ltd.
858, 605 5th Ave S.W.
Calgary, Alberta
T2P 3H5
---
To unsubscribe, mail advanced-java-unsubscribe@xxxxxxxxxxxxxxxx
To get help, mail advanced-java-help@xxxxxxxxxxxxxxxx
---
To unsubscribe, mail advanced-java-unsubscribe@xxxxxxxxxxxxxxxx
To get help, mail advanced-java-help@xxxxxxxxxxxxxxxx
- Prev by Date: What does SO_LINGER do?
- Next by Date: JDBC driver types
- Previous by thread: JTable Cell Editing
- Next by thread: JTable Cell Editing
- Index(es):