title: Format Date in Jtable/ResultSet
body: <p>I am having trouble displaying <code>Date</code>s in the format I want in my <code>JTable</code>. My <code>JTable</code> has been created using a ResultSet and lists. </p>
  
  <p>I tried the following in <code>getValueAt(.)</code> but no luck:</p>
  
  <pre><code>        if(value instanceof Date)
          {
              //System.out.println("isDate");
              DateFormat formatter = DateFormat.getDateInstance();
              SimpleDateFormat f = new SimpleDateFormat("MM/dd/yy");
              value = f.format(value);
              Date parsed  = (Date) value;
              try {
                  parsed = (Date) f.parse(value.toString());
              } catch (ParseException e) {
                  // TODO Auto-generated catch block
                  e.printStackTrace();
              }
              value = parsed.toString();
          }
  </code></pre>
  
  <p>The <code>println(.)</code> is never printed so it isn't even getting to that. The Format that is being displayed is <code>Apr 10, 1992</code> but I want <code>04/10/92</code></p>
  
  <p>While we are on the topic of <code>Date</code> in <code>JTables</code>... I have <code>isCellEditable(.)</code> as true but I cannot edit the Date cells. How do you do this?</p>