This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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 Android Security Essentials Live Lessons this week in the Android 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
 
Consider Paul's rocket mass heater.
 
subject: JTable's Cell Text append Problem
 
Similar Threads
DefaultTableModel cell editable
a q about JTable, implementing a CellEditor and changing the ComponentOrienation
Jtable cell displaying Japanese chars misbehave
Focusing a JTable Cell when JDialog is invoked
DEFAULTCELLEDITOR without double click action