Re: Questions About JTable Cell Editing?



RC wrote:
I am try to edit my table three columns:

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!
You could use the 'row' and 'column' parameters passed to the
getTableCellEditorComonent() method.

.



Relevant Pages

  • Re: Timestamp Value - please help
    ... The following topic in MSDN gives an example of converting hex to string. ... Private mintEmpID As Integer ... 'Pass the timestamp to conversion function. ... I retrieve the updated TS for future updates. ...
    (microsoft.public.dotnet.framework.adonet)
  • Re: [PhP - dB] About Formatting a Date Result
    ... In the MySQL database the field is set to date not timestamp as you ... foresight has stored a string date instead of a timestamp, ... and can format your date to that used, in the config files, for any user ...
    (php.general)
  • Re: yamp yet another multiline post
    ... start app timestamp ... return string from application ... app complete timestamp ... Mike Dundas ...
    (comp.lang.awk)
  • Re: yamp yet another multiline post
    ... start app timestamp ... return string from application ... app complete timestamp ... moving solaris awk to awk.old and linking xpg4 awk instead? ...
    (comp.lang.awk)
  • yamp yet another multiline post
    ... I need to clean up a log file that was produced when the logging level set ... start app timestamp ... return string from application ... app complete timestamp ...
    (comp.lang.awk)