Hi All,

JTable editing is just tedious. I am having so many problems, one
after another.

here are my question.

1. I have a JTable and its editable. Its has SINGLE_SELECTION policy
   set on it. When I tab from one column to another, it puts a faint
   black box around a cell. Is this cell selection or eidting ?
   I dont get correct column when I use getEditingColumn() and also
   getSelectedColumn(). Editing column is properly returned ONLY
   when I double click into the cell and selection column is
   properly returned ONLY when there is that blue color highlighing
   on a cell of a column. Then what is the black box ? If that
represent
   just focus, how to I find out which column has focus ?

   Basically when user tabs out of last column, I want to add a row
   to the table and I want to do this only when user has tabbed out
   of last column of a last row.

2. I have a table model which returns true for isEditable. When I
   tab from one column to another, why editing is allowed, because
   I can just start typing and into the cell. Its very
   confusing when JTable allows editing, just by having a focus on
   a cell or by double clicking on it. ( in case of double click,
   it changes cell into, I think, a text field. )

Any ideas whats going on ?

 

__________________________________________________
Do you Yahoo!?
Faith Hill - Exclusive Performances, Videos & More
http://faith.yahoo.com
_______________________________________________
Swing mailing list
[EMAIL PROTECTED]
http://eos.dk/mailman/listinfo/swing

Reply via email to