wood burning stoves*
The moose likes Swing / AWT / SWT and the fly likes Table and cell editor 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 "Table and cell editor" Watch "Table and cell editor" New topic
Author

Table and cell editor

Serghei Jelauc
Ranch Hand

Joined: Jul 24, 2002
Posts: 128
Hi all.

I have created the JTable, and set cell editor on the one of columns. The cell editor is JFormattedTextField wich shows data in money format($55.00)
When my table is opened first time theres is no the $ sign in cells. Only when I double click on the cell to edit it the $ is appeared and after it, it is visible (even if I leave the cell after editing). How to do so, that first time when table is opened all the cells in column were with the $ sign?

thanks in advance.


SCJP 1.4 <br />SCBCD 1.3<br />SCWCD 1.4
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Table and cell editor
 
Similar Threads
Borders on PdfPTable in iText
change JTable cell background color dynamically
Wierd Behavior:TableCellRenderer
New cell content in JTable is not detected.
Table Model data not getting updated after JTable looses focus