Re: Questions About JTable Cell Editing?
- From: "hiwa" <HGA03630@xxxxxxxxxxx>
- Date: 7 Dec 2006 16:09:55 -0800
RC wrote:
I am try to edit my table three columns:You could use the 'row' and 'column' parameters passed to the
Observation Time, Value and Mode where they are
Timestamp, Double and String.
My first question is do I need to create three
different DefaultCellditors, one for Timestamp, one
for Double and one for String?
Because I am thinking use JFormattedTextField instead just JTextField,
which I can force user type in correct Timestamp format and Double
digits.
I went to this page
http://java.sun.com/docs/books/tutorial/uiswing/components/table.html
But I couldn't find some sample codes.
I also checked out Sun's TableDemo.java in SwingSet2. I only
found JComboBox CellEditor codes.
Can someone out there point me some sample codes how to create
some table cell editor?
Thank Q very much in advance!
getTableCellEditorComonent() method.
.
- References:
- Questions About JTable Cell Editing?
- From: RC
- Questions About JTable Cell Editing?
- Prev by Date: Re: Some Strange things in JTable
- Next by Date: Listing all threads
- Previous by thread: Questions About JTable Cell Editing?
- Next by thread: Some Strange things in JTable
- Index(es):
Relevant Pages
|