Questions About JTable Cell Editing?

Discussion in 'Java' started by RC, Dec 7, 2006.

  1. RC

    RC Guest

    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!
     
    RC, Dec 7, 2006
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Tivo Escobar
    Replies:
    1
    Views:
    7,548
    manusa
    Apr 12, 2007
  2. news.rcn.com
    Replies:
    1
    Views:
    9,813
    Chris Smith
    Jul 12, 2004
  3. Tintin92
    Replies:
    1
    Views:
    1,810
    Andrew Thompson
    Feb 14, 2007
  4. Empire City
    Replies:
    3
    Views:
    435
    Empire City
    Apr 30, 2004
  5. Haircuts Are Important
    Replies:
    3
    Views:
    414
    Haircuts Are Important
    Jun 4, 2013
Loading...

Share This Page