wood burning stoves 2.0*
The moose likes Swing / AWT / SWT and the fly likes JTable's Cell Text append Problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "JTable Watch "JTable New topic
Author

JTable's Cell Text append Problem

VIV sharma
Greenhorn

Joined: Jan 01, 2004
Posts: 18
In one of my application, i have a JTable having one row and some columns.

Problems :
1) when i go to any cell by pressing tab, and start editing, it start appending the text, rather i want to override the text.
2) same way, if i double click on particular cell, and start editing, it should not append.


Thanks in Advance.

ViV
Murugan Patham
Greenhorn

Joined: Oct 16, 2004
Posts: 20
Have a defaultCellEditor and define the behaviour for that editor
Murugan Patham
Greenhorn

Joined: Oct 16, 2004
Posts: 20
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: JTable's Cell Text append Problem
 
Similar Threads
DefaultTableModel cell editable
Jtable cell displaying Japanese chars misbehave
Focusing a JTable Cell when JDialog is invoked
DEFAULTCELLEDITOR without double click action
a q about JTable, implementing a CellEditor and changing the ComponentOrienation